mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4228 from flashbackzoo/pulls/menu-fix
Fix left nav styling.
This commit is contained in:
commit
e2f180db86
@ -139,6 +139,14 @@
|
|||||||
onadd: function () {
|
onadd: function () {
|
||||||
var self = this;
|
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.
|
// Setup automatic expand / collapse behaviour.
|
||||||
$(window).on('ajaxComplete', function (e) {
|
$(window).on('ajaxComplete', function (e) {
|
||||||
setTimeout(function () { // Use a timeout so this happens after the redraw
|
setTimeout(function () { // Use a timeout so this happens after the redraw
|
||||||
|
@ -221,7 +221,7 @@ jQuery.noConflict();
|
|||||||
* See LeftAndMain.Layout.js for description of these options.
|
* See LeftAndMain.Layout.js for description of these options.
|
||||||
*/
|
*/
|
||||||
LayoutOptions: {
|
LayoutOptions: {
|
||||||
minContentWidth: 820,
|
minContentWidth: 940,
|
||||||
minPreviewWidth: 400,
|
minPreviewWidth: 400,
|
||||||
mode: 'content'
|
mode: 'content'
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user