Skip to content
Snippets Groups Projects
Commit 0b3656ac authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

toggle mediamanager resizable handle to east/west based at dir=rtl

parent 7abc270f
No related branches found
No related tags found
No related merge requests found
......@@ -485,7 +485,7 @@ var dw_mediamanager = {
var $resizables = dw_mediamanager.$resizables();
$resizables.resizable({
handles: (jQuery('html[dir=rtl]') ? 'w' :'e'),
handles: (jQuery('html[dir=rtl]').length ? 'w' :'e'),
resize: function(event, ui){
var $page = jQuery('#mediamanager__page');
var widthFull = $page.width();
......@@ -530,9 +530,9 @@ var dw_mediamanager = {
resize: function () {
var $contents = jQuery('#mediamanager__page').find('div.panelContent'),
height = jQuery(window).height() - jQuery(document.body).height() +
Math.max.apply(null, jQuery.map($contents, function (v) {
return jQuery(v).height();
}));
Math.max.apply(null, jQuery.map($contents, function (v) {
return jQuery(v).height();
}));
// If the screen is too small, don’t try to resize
if (height < dw_mediamanager.minHeights[dw_mediamanager.view_opts.list]) {
......
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