I want to use a FlexTable
in a DialogBox
.
The size of the DialogBox
should match the size of the FlexTable
.
Unfortunately, the DialogBox
is smaller, so the FlexTable
is cut and only parts of it are visible.
Is there a way to automatically resize the DialogBox
so that the FlexTable
fits?
(Please note, that the FlexTable
will not change while being displayed, so there is not automatic resizing necessary once it is shown on the screen...)
Did anyone already accomplish this?
I think I now found out what was wrong. In addition to Bryan's great answer which might also help in such situations (though in mine there is no change between automatic sizing and Bryan's approach). I found out that when using animations, the width of a
DialogBox
in GWT is limited to 400 px. When changing the lineto
the sizing of the DialogBox works perfectly fine. Maybe this is helpful for someone...