Sencha Touch - 选项卡面板布局
请参阅演示:http://jsfiddle.net/JeaffreyGilbert/NGrry/1/
如何使选项卡面板的内容填充中心区域?标题应该位于工具栏的顶部、下方。
预期布局: http://dev.sencha.com/deploy/touch/examples/厨房水槽/。我认为源代码并不完整,只有 tabPanel 本身。
请帮忙。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常要进行这种布局,我必须嵌套面板并使用将 flex 属性设置为 1 的空面板。
我调整了您的代码以显示我的意思 http://jsfiddle.net/r9c2M/
例如,为了将文本“Home”置于工具栏标题下方的中心,我将第一个选项卡面板项更改为
另外选项卡面板应该只是主要的视口面板,而不是停靠项。这也打乱了布局。
Usually to do that sort of layout I've had to nest panels and use empty panels with the flex attribute set to 1.
I adjusted your code to show what I mean http://jsfiddle.net/r9c2M/
For example to center the text 'Home' underneath the toolbar title I changed the first tabpanel item to
Also the tabpanel should just be an item of the main viewport panel, not a dockedItem. That was messing up the layout too.