-
29 Oct 2012 4:48 AM #1
Misplaced collapsed region title in FF
Misplaced collapsed region title in FF
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1
- IE8
- FF16.0.1
- Safari 5.1.7
- Chrome 22
- HTML 4.01
- Collapsed east or west region title is misplaced in FF.
- If the east/west region is expanded, collapse it.
- The title of region in border layout should be in the middle of collapsed region header.
- The title of east/west region is shifted left of the collapsed region header.
Code:Ext.onReady(function() { var viewport = Ext.create('Ext.Viewport', { layout: { type: 'border' }, items: [{ region: 'east', title: 'East', width: 100, collapsible: true, collapsed: true }, { region: 'west', title: 'West', width: 100, collapsible: true }, { region: 'center', title: 'Center' }] }); });
HELPFUL INFORMATION
Screenshot or Video:Debugging already done:- none
- not provided
- only default ext-all.css
- Win 7
-
29 Oct 2012 11:18 AM #2
I did not see you use titleAlign in your panel configuration
Code:Ext.create('Ext.Viewport', { layout: { type: 'border' }, items: [{ region: 'east', title: 'East', titleAlign: 'center', width: 100, collapsible: true, collapsed: true }, { region: 'west', title: 'West', titleAlign: 'center', width: 100, collapsible: true }, { region: 'center', titleAlign: 'center', title: 'Center' }] });
-
29 Oct 2012 11:52 AM #3
Better picture
Better picture
Thank for support, your code works well in non-collapsed region. I've marked the problematic title placement in the picture - only collapsed region titles are misplaced (east and west region).
All other tested browsers render the title in the right place.
collapsedregion.png
EDIT: only collapsed region titles are misplaced horizontally. It should be top-center, not top-left.Last edited by ivan5o; 29 Oct 2012 at 1:00 PM. Reason: Clarify
-
29 Oct 2012 12:47 PM #4
you are right, if I assign titleAlign='center', the title in collapsed panel is not aligned to center.
titleAlign can be assigned to 'center', 'left', 'right', however, we can not assume the title in collapsed panel will be aligned to 'center', 'top', 'bottom'.
the title on collapsed panel is always on top. that is designed
-
29 Oct 2012 12:53 PM #5
Thanks for the report, this is a known issue that has since been fixed in the current build. In the newer FF they changed the way the baseline for some drawing components are calculated. As such, in future versions we're now using CSS instead of drawing to achieve vertical text.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
29 Oct 2012 1:02 PM #6
Thanks, evant. I'm waiting for public release of 4.1.2.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote