Permalink
Browse files

[BUG #6799] Add a pixel extra in chrome >= 22 to make sure labels fit…

… in and don't show ellipsis.
  • Loading branch information...
1 parent db92d61 commit 2c8c1070adae71efbe491cd9d4111fb3bd4e5215 @wittemann wittemann committed Sep 11, 2012
@@ -346,6 +346,12 @@ qx.Bootstrap.define("qx.bom.Label",
if ((qx.core.Environment.get("engine.name") == "mshtml") && parseFloat(qx.core.Environment.get("engine.version")) >= 9) {
size.width++;
}
+ // Chrome since version 22 also has the already known missing pixel [BUG #6799]
+ if (qx.core.Environment.get("browser.name") == "chrome" && parseFloat(qx.core.Environment.get("browser.version")) >= 22) {
+ console.log("bad chrome");
+ size.width++;
+ }
+
return size;
}
}
@@ -185,7 +185,7 @@ qx.Class.define("qx.ui.mobile.core.EventHandler",
var EventHandler = qx.ui.mobile.core.EventHandler;
var touch = domEvent.getChangedTargetTouches()[0];
-
+
var deltaY = touch.screenY - EventHandler.__startY;
if (EventHandler.__activeTarget && Math.abs(deltaY) >= qx.event.handler.TouchCore.TAP_MAX_DISTANCE) {

0 comments on commit 2c8c107

Please sign in to comment.