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?
In my application, I created a
DialogBoxsubclass which makes things much easier to deal with because you will have to know when the modal is present on screen so that you can accurately determine the table's size.In my experience, I've found that you will need to defer the
getOffsetHeightandgetOffsetWidthcalls once after the widget has been attached to the DOM to get a consistent, valid result.