Commit 8b3a8a30 by Valera Rozuvan Committed by Alexander Kryklia

Refactoring.

parent d231b9ed
...@@ -739,27 +739,21 @@ define(['logme', 'update_input'], function (logme, updateInput) { ...@@ -739,27 +739,21 @@ define(['logme', 'update_input'], function (logme, updateInput) {
this.iconEl.css( this.iconEl.css(
'left', 'left',
target.offset.left + 0.5 * target.w - target.offset.left + 0.5 * target.w - this.iconWidth * 0.5 + offset - this.iconElLeftOffset
this.iconWidth * 0.5 + offset
- this.iconElLeftOffset
); );
this.iconEl.css( this.iconEl.css(
'top', 'top',
target.offset.top + 0.5 * target.h - target.offset.top + 0.5 * target.h - this.iconHeight * 0.5 + offset
this.iconHeight * 0.5 + offset
); );
if (this.labelEl !== null) { if (this.labelEl !== null) {
this.labelEl.css( this.labelEl.css(
'left', 'left',
target.offset.left + 0.5 * target.w - target.offset.left + 0.5 * target.w - this.labelWidth * 0.5 + offset - 9 // Acoount for padding, border.
this.labelWidth * 0.5 + offset
- 9 // Acoount for padding, border.
); );
this.labelEl.css( this.labelEl.css(
'top', 'top',
target.offset.top + 0.5 * target.h + target.offset.top + 0.5 * target.h + this.iconHeight * 0.5 + 5 + offset
this.iconHeight * 0.5 + 5 + offset
); );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment