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

Loading…
Cancel
Save