-
4 Dec 2012 7:34 AM #1
Unanswered: How to remove double border from adjacent panels?
Unanswered: How to remove double border from adjacent panels?
I have two ajacent panels, arranged by hbox layout
I want to remove double border between panels.PHP Code:Ext.onReady(function(){
var panel = Ext.widget('viewport', {
layout: {
type: 'vbox',
align: 'stretch'
},
items: [{
xtype: 'panel',
flex: 1,
html: 'first panel'
}, {
xtype: 'panel',
border: '0 1 1 1',
flex: 1,
html: 'second panel'
}]
});
});
I try to set border: '0 1 1 1' to second panel, but it had no effect.
Setting style: {borderWidth: '0 1px 1px 1px'} didn't help too.
Set style: {borderWidth: '0 1px 1px 1px'} helps, until there is no toolbars.
If I decide to add topbar to second panel, between toolbar and panel body will hasn't border, but between toolbar and first panel appear double border again.
How I can describe boundaries so that between all elements boundary will be single?
Here is my codepen example: http://codepen.io/Just-Boris/pen/bdsrn
-
6 Dec 2012 7:49 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
- Answers
- 3105
First thought is it doesn't seem like you need to use panel there but can just use component (or container if you need child items but no title)
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
6 Dec 2012 11:39 PM #3
I helps me in this case, but what would I do if I need to create more difficult interface?
http://codepen.io/Just-Boris/pen/fDnjK
In this case first panel become grid, and second panel has title.
There is are needed panels and problem still remains.


Reply With Quote