Skip to content
Snippets Groups Projects
Commit 4094938a authored by juanf's avatar juanf
Browse files

SSDM-7228 : ios scroll fixes between portrait-landscape

parent 9681908a
No related branches found
No related tags found
No related merge requests found
......@@ -407,8 +407,6 @@ var LayoutManager = {
this.isLoadingView = true;
var isFirstTime = this.mainContainer === null || forceFirstTime === true || forceFirstTime === undefined;
this._init(isFirstTime);
var width = $( window ).width();
if (width > this.DESKTOP_SIZE) {
......@@ -428,6 +426,7 @@ var LayoutManager = {
}
}
this._init(isFirstTime);
if (this.FOUND_SIZE === this.DESKTOP_SIZE) {
this._setDesktopLayout(view, isFirstTime);
} else if (this.FOUND_SIZE === this.TABLET_SIZE) {
......
......@@ -119,7 +119,14 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) {
var $body = $("<div>", {"id": "sideMenuBody"});
$body.css("overflow-y", "auto");
$body.css("-webkit-overflow-scrolling", "touch");
LayoutManager.addResizeEventHandler(function() {
if(LayoutManager.FOUND_SIZE === LayoutManager.MOBILE_SIZE) {
$body.css("-webkit-overflow-scrolling", "auto");
} else {
$body.css("-webkit-overflow-scrolling", "touch");
}
});
$widget.append($header)
.append($body);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment