Peter246
(Peter Willems)
1
Hi,
The confirm dialog in my code gets an unwanted scrollbar. The demo at http://sami.virtuallypreinstalled.com/confirmdialog does not.
ConfirmDialog.show(this.getUI(), “Some changes may have not been saved. Are you sure you want to discard them?”, listener);
What did I do wrong? How should I create the dialog?
Peter
Peter246
(Peter Willems)
2
This works:
ConfirmDialog.setFactory(new DefaultConfirmDialogFactory() {
@Override
protected double getDialogDimensions(String message, org.vaadin.dialogs.ConfirmDialog.ContentMode style) {
double dimensions = super.getDialogDimensions(message, style);
dimensions[0]
*= 1.2;
return dimensions;
}
});
matiasxx
(Matias Gutierrez)
3
Hi Peter, I do this but no doesn’t override any getDialogDimensions.
I’m having the same problem.
How did you do it?
Regards
matiasxx
(Matias Gutierrez)
4
I resolve this removing the jar of the addon (ConfirmDialog) and recompiling the widgetset. Start working nice!