PDA

View Full Version : [CLOSED] Image and layout



jchau
Jul 07, 2015, 7:15 PM
I have an image control with src set to a WebAPI call that dynamically generates the image. Issue is that the image takes up to 1s to load and after the image is loaded, the panel containing the image doesn't resize to show the image. Only the top few pixels are shown.

fabricio.murta
Jul 08, 2015, 6:26 AM
Hello @jchau!

You can use the parent communication once the image size is known by the controller, and set the outside panel's size accordingly.

If its still not clear how to do this, we could better aid you if you provide us a simple and working test case of the scenario you're trying to build.

An example about child+parent communication is in this example: IFrame Communicaton (http://examples2.ext.net/#/Panel/Basic/IFrame_Communication/).

I hope this helps!