Merge pull request #4228 from flashbackzoo/pulls/menu-fix

Fix left nav styling.
This commit is contained in:
Damian Mooyman 2015-05-25 17:14:31 +12:00
commit e2f180db86
2 changed files with 9 additions and 1 deletions

View File

@ -139,6 +139,14 @@
onadd: function () {
var self = this;
setTimeout(function () {
// Use a timeout so this happens after the redraw.
// Triggering a toggle before redraw will result in an incorrect
// menu 'expanded width' being calculated when then menu
// is added in a collapsed state.
self.togglePanel(!self.getEvaluatedCollapsedState(), false, false);
}, 0);
// Setup automatic expand / collapse behaviour.
$(window).on('ajaxComplete', function (e) {
setTimeout(function () { // Use a timeout so this happens after the redraw

View File

@ -221,7 +221,7 @@ jQuery.noConflict();
* See LeftAndMain.Layout.js for description of these options.
*/
LayoutOptions: {
minContentWidth: 820,
minContentWidth: 940,
minPreviewWidth: 400,
mode: 'content'
},