-
14 Mar 2007 9:46 AM #1
What's x-layout-inactive-content? (newbie question)
What's x-layout-inactive-content? (newbie question)
Hi,
I'm just starting with Ext (1.0 alpha version) and looking at the examples, I seebeing used in the div tags.Code:class="x-layout-inactive-content"
Can anyone tell me what effect using this class is supposed to have and what other classes there are and what effect they have?
(basically, I'm just looking for guidance on when to use what).
Thanks,
Ben.
-
14 Mar 2007 9:53 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Forest Grove, OR
- Posts
- 1,038
- Vote Rating
- 0
Can be easily answered by looking at ext-all.css:
Basically what that does is places the elements completely offscreen so they're not visible to the user.Code:.x-layout-inactive-content{ position:absolute; left:-10000px; top:-10000px; visibility:hidden; }
-
14 Mar 2007 10:07 AM #3
Thanks for the really quick answer Jeff.
Forgive me, but now I'm really confused. Every single div tag in the "complex.html" example has this class, except for the parent "container" div.
Doesn't this mean then that all the panels etc. would be invisble? Yet, it works. I must be missing something here...
-
14 Mar 2007 10:29 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Forest Grove, OR
- Posts
- 1,038
- Vote Rating
- 0
If you aren't using it already, download and install Firefox. Then, download and install Firebug. With that, poke around the DOM after the page is rendered and you'll see that the elements with that class in the source have had that class swapped out for something else.
-
14 Mar 2007 10:30 AM #5
In general, this is done to ensure that the UI drawing is imperceptible to the user. Rather than starting everything off visible, then positioing everything dynamically while visible, all of the positioing is done offscreen. This (combined with the layout manager's internal processing flag) ensures that there's no perceptible flickering as things get moved around on render.
-
14 Mar 2007 10:37 AM #6
Ah, I get it.
Thanks for the comprehensive replies!
Ben.
Similar Threads
-
Basic newbie question
By AllexS in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 22 Mar 2007, 11:18 AM -
Newbie question: How to get the Id from an element ?
By GBS in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 22 Jan 2007, 1:57 AM -
Newbie - BorderLayout question
By ernestlambert in forum Community DiscussionReplies: 0Last Post: 5 Dec 2006, 8:59 AM -
DomHelper creating Panels to Layout but inactive
By young_matthewd in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 18 Nov 2006, 1:05 PM -
BasicDialog incompatible with ylayout-inactive-content?
By SteveEisner in forum Ext 1.x: BugsReplies: 5Last Post: 6 Nov 2006, 3:10 PM


Reply With Quote
