« Return to Thread: update/resize LayoutContainer

RE: update/resize LayoutContainer

by Carsten Pieper :: Rate this Message:

Reply to Author | View in Thread

Hi,

I've been browsing this forum because I have a similar problem as Bruce
described. I got a question (a stupid one??) about Bruce' solution:

What "layoutContainer.onResized()" is Bruce writing about? I can't find
such an animal in the documentation
(http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/layout/layout-container).
Am I looking at all the wrong places or has the onResized() function been
removed in the meantime (Bruce' posting is quite old...)?

If the function has indeed been removed, is there any other way to solve
the resizing problem?

Any advice appreciated, thanks in advance,
Carsten

Bruce Webster-2 wrote:
[talking to myself]
I've found that layoutContainer.onResized() does the trick - makes  
layout resize itself to account for altered content.

> If I update the content of one of my contentPanes, I need to get  
> the whole layout to resize itself and shrink another Pane to make  
> the new content visible.  I tried calling checkSize() on the  
> LayoutContainer but that didn't help.  Resizing the window (maually  
> or with JS) does fix the layout.  How can I call this resize event  
> without changing the window size?
>
> I've noticed that the originally-messed-up layout in Safari with  
> RichText component(s) in contentPanes fixes itself on a window  
> resize too - so that bug can probably be fixed with a timeout
> (checkSize,1) call in the initialization somewhere.

_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest@dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: update/resize LayoutContainer