09-12-2013 06:50 AM
Set you initial values to the values you specify in preferredWidth & preferredHeight, then you can attach a Layout Update Handler to the container to check if and when the dimensions change...
09-12-2013 07:03 AM
I am creating a container and setting webView on it. i don't want to set preferred height or width of container.
is it possible to get container height or width as we can do with DisplayInfo:ixelSize().width().
09-12-2013 07:10 AM
I haven't tested this but possibly not setting a width and height will fire the update handler anyway, although I wouldn't like to rely on this.
As far as I know my suggestion is the only reliable way of getting the dimensions, especially as you are relying on the OS to set them and not providing your own preferred ones.
09-12-2013 07:16 AM