From dbe0a4d372b2b9d89d4c03c6d1ba760fe0e7cf18 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 14 Oct 2012 23:18:12 +0400 Subject: [PATCH] updated the experiment... Signed-off-by: Alex A. Naanou --- ui/experiments/infinite-ribbon-timeout-method.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/experiments/infinite-ribbon-timeout-method.html b/ui/experiments/infinite-ribbon-timeout-method.html index 5a6803a6..06b66ba9 100755 --- a/ui/experiments/infinite-ribbon-timeout-method.html +++ b/ui/experiments/infinite-ribbon-timeout-method.html @@ -50,8 +50,12 @@ function shift_ribbon_left(){ // correct for growth... var w = 80 var l = parseFloat($('.field').css('left')) + // XXX on 20.0 chrome, getting the left coordinates will yeild a + // screen value correctd for zoom, which is different from the + // value written... + // e.g. writing 400px with page zoom to 80% and then getting the + // value will return 300px!! $('.field').css({left: l + w*5}) - console.log($('.field').css('left'), l, l+w*5) // XXX this is really hackish! ...find a better way to solve this... // XXX this is bad because it might depend on the speed of the device... @@ -66,8 +70,12 @@ function shift_ribbon_right(){ // correct for growth... var w = 80 var l = parseFloat($('.field').css('left')) + // XXX on 20.0 chrome, getting the left coordinates will yeild a + // screen value correctd for zoom, which is different from the + // value written... + // e.g. writing 400px with page zoom to 80% and then getting the + // value will return 300px!! $('.field').css({left: l - w*5}) - console.log($('.field').css('left'), l, l-w*5) // XXX this is really hackish! ...find a better way to solve this... // XXX this is bad because it might depend on the speed of the device...