From bd89260de7b256b729e2586f61ed13d64e5cb228 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 17 Jun 2014 19:27:25 +0400 Subject: [PATCH] some minor tweaking... Signed-off-by: Alex A. Naanou --- ui/data4.js | 10 ++++------ ui/layout.less | 8 ++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ui/data4.js b/ui/data4.js index 3a816394..55117fb3 100755 --- a/ui/data4.js +++ b/ui/data4.js @@ -260,7 +260,7 @@ var DataPrototype = { // NOTE: image order can be negative, thus getting an image // from the tail. // - // Get first or last image: + // Get first or last image in ribbon: // .getImage('first'[, ribbon]) // .getImage('last'[, ribbon]) // -> gid @@ -625,7 +625,6 @@ var DataPrototype = { // // // NOTE: this expects ribbon order and not image order. - // getRibbon: function(target, offset){ target = target == null ? this.current : target offset = offset == null ? 0 : offset @@ -711,8 +710,8 @@ var DataPrototype = { }, nextImage: function(){ return this.focusImageOffset(1) }, // Gen2 prevImage: function(){ return this.focusImageOffset(-1) }, // Gen2 - firstImage: function(){ return this.focusImageOffset(-this.getImages('current').length) }, // Gen2 - lastImage: function(){ return this.focusImageOffset(this.getImages('current').length) }, // Gen2 + firstImage: function(){ return this.focusImage('first') }, // Gen2 + lastImage: function(){ return this.focusImage('last') }, // Gen2 focusRibbonOffset: function(offset){ var c = this.getRibbonOrder() var t = c+offset @@ -741,7 +740,6 @@ var DataPrototype = { // // If mode is 'below' this will create a new ribbon below the target, // otherwise the new ribbon will be created above. - // XXX account for no ribbons... newRibbon: function(target, mode){ var gid = this.newGid('R') var i = this.getRibbonOrder(target) @@ -763,7 +761,7 @@ var DataPrototype = { // If 'all' is the first argument, this will merge all the ribbons. // // This will merge the ribbons into the first. - mergeRibbons: function(target, other){ + mergeRibbons: function(target){ var targets = target == 'all' ? this.ribbon_order.slice() : arguments var base = targets[0] diff --git a/ui/layout.less b/ui/layout.less index 81f19903..943efaaa 100755 --- a/ui/layout.less +++ b/ui/layout.less @@ -38,6 +38,14 @@ -o-transform: rotate(@deg) scaleY(@scaleY) scaleX(@scaleX); -ms-transform: rotate(@deg) scaleY(@scaleY) scaleX(@scaleX); transform: rotate(@deg) scaleY(@scaleY) scaleX(@scaleX); + + /* This prevents elements from aligning to sub-pixels...*/ + /* + -webkit-transform-style: preserve-3d; + -moz-transform-style: preserve-3d; + transform-style: preserve-3d; + */ + } .scale (@scale) { .transform(0deg, @scale, @scale)