Screen adaptation on mobile version: Canvas width calculation with 1px error
Screen adaptation on mobile version: Canvas width calculation with 1px error
Bug #3406 [Closed]
- % Done changed from 0 to 100
In the previous version, horizontal alignement is affected by “textAlign” css style, but this isn’t very reliable and create sometimes such tiny errors.
So now, I calculate the offset of our canvas element and set the offset to the padding value of its parent. Note that margin / padding doesn’t take float value, so I used integer precision in these offset values.
- Status changed from New to Closed
Status: | Closed | |
---|---|---|
Start date: | 2013-12-16 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | - | |
Target version: | v2.2.2 |
Sometimes the viewport calculation is mistaken with 1px blank espace on the right side of the canvas for SHOW_ALL resolution policy.