The branch, master has been updated via 03436f6511041f4fd9028ca3c01d95f7a94b14ed (commit) from 9bb001b556f491cf1ffa292e909366bb1ad3f36c (commit)
- Log ----------------------------------------------------------------- commit 03436f6511041f4fd9028ca3c01d95f7a94b14ed Author: Yuichiro yuichiro@pop07.odn.ne.jp Date: Wed Dec 7 12:59:03 2011 +0000
Patch #3453408 - Fixed text overflow in the toggle switch of the Event Scheduler
-----------------------------------------------------------------------
Summary of changes: js/functions.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/js/functions.js b/js/functions.js index 1e2bbad..829ae58 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3137,8 +3137,9 @@ var toggleButton = function ($obj) { var on = $('.toggleOn', $obj).width(); var off = $('.toggleOff', $obj).width(); // Make the "ON" and "OFF" parts of the switch the same size - $('.toggleOn > div', $obj).width(Math.max(on, off)); - $('.toggleOff > div', $obj).width(Math.max(on, off)); + // + 2 pixels to avoid overflowed + $('.toggleOn > div', $obj).width(Math.max(on, off) + 2); + $('.toggleOff > div', $obj).width(Math.max(on, off) + 2); /** * var w Width of the central part of the switch */
hooks/post-receive