Browse Source

WebUI: MochaUI: Use same cursors on Gecko and WebKit

adaptive-webui-19844
Gabriele 10 years ago
parent
commit
3be4257ad9
  1. 2
      src/webui/www/public/scripts/mocha-yc.js
  2. 10
      src/webui/www/public/scripts/mocha.js

2
src/webui/www/public/scripts/mocha-yc.js

File diff suppressed because one or more lines are too long

10
src/webui/www/public/scripts/mocha.js

@ -4648,7 +4648,7 @@ MUI.Column = new Class({ @@ -4648,7 +4648,7 @@ MUI.Column = new Class({
this.columnToggle();
}.bind(this));
this.resize.attach();
this.handleEl.setStyle('cursor', Browser.Engine.webkit ? 'col-resize' : 'e-resize').addClass('attached');
this.handleEl.setStyle('cursor', (Browser.Engine.webkit || Browser.Engine.gecko) ? 'col-resize' : 'e-resize').addClass('attached');
MUI.rWidth();
this.fireEvent('onExpand');
@ -5104,7 +5104,7 @@ MUI.extend({ @@ -5104,7 +5104,7 @@ MUI.extend({
instance.resize.attach();
instance.handleEl.setStyles({
'display': 'block',
'cursor': Browser.Engine.webkit ? 'row-resize' : 'n-resize'
'cursor': (Browser.Engine.webkit || Browser.Engine.gecko) ? 'row-resize' : 'n-resize'
}).removeClass('detached');
} else {
instance.resize.detach();
@ -5345,7 +5345,7 @@ function addResizeRight(element, min, max){ @@ -5345,7 +5345,7 @@ function addResizeRight(element, min, max){
var instance = instances.get(element.id);
var handle = element.getNext('.columnHandle');
handle.setStyle('cursor', Browser.Engine.webkit ? 'col-resize' : 'e-resize');
handle.setStyle('cursor', (Browser.Engine.webkit || Browser.Engine.gecko) ? 'col-resize' : 'e-resize');
if (!min) min = 50;
if (!max) max = 250;
if (MUI.ieLegacySupport) {
@ -5401,7 +5401,7 @@ function addResizeLeft(element, min, max){ @@ -5401,7 +5401,7 @@ function addResizeLeft(element, min, max){
var instance = instances.get(element.id);
var handle = element.getPrevious('.columnHandle');
handle.setStyle('cursor', Browser.Engine.webkit ? 'col-resize' : 'e-resize');
handle.setStyle('cursor', (Browser.Engine.webkit || Browser.Engine.gecko) ? 'col-resize' : 'e-resize');
var partner = element.getPrevious('.column');
if (!min) min = 50;
if (!max) max = 250;
@ -5443,7 +5443,7 @@ function addResizeBottom(element){ @@ -5443,7 +5443,7 @@ function addResizeBottom(element){
var instances = MUI.Panels.instances;
var instance = instances.get(element.id);
var handle = instance.handleEl;
handle.setStyle('cursor', Browser.Engine.webkit ? 'row-resize' : 'n-resize');
handle.setStyle('cursor', (Browser.Engine.webkit || Browser.Engine.gecko) ? 'row-resize' : 'n-resize');
partner = instance.partner;
min = 0;
max = function(){

Loading…
Cancel
Save