Skip to content

Instantly share code, notes, and snippets.

@swarnendude
Last active December 16, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swarnendude/5480899 to your computer and use it in GitHub Desktop.
Save swarnendude/5480899 to your computer and use it in GitHub Desktop.
Viewport for both left and right navigation
Ext.define('SlideNav.view.Viewport', {
extend: 'Ext.Container',
xtype: 'app_viewport',
requires: [
'Ext.TitleBar'
],
config: {
fullscreen: true,
layout: 'hbox',
items: [{
xtype: 'main',
cls: 'slide',
// Needed to fit the whole content
width: '100%'
}, {
xtype: 'navigation',
width: 250
}
]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment