layout editor coordinates not saved correct

Bug #1227855 reported by Herbert Voordes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Incomplete
Undecided
Dan Garner

Bug Description

Server: 1.5.1
Client: 1.5
Web browser: IE, Chrome

Reproduce bug:
1. open layout and add region.
2. Region, option: Put in coordinates
3. Save the layout (if needed)
4. Re-open layout

Now you will see the coordinates are different from the ones you put in in the first place.

When looking at the database (table: layout, field XML); the coorinates are not stored correctly.

There is allways 1 pixel less than the given value.

For example: create region: option: left 0; top 148; width: 200; height: 300; it saves top as 147.

Revision history for this message
Herbert Voordes (hvoordes) wrote :

The problem is possible solved with removing the border (1px solid #000000) from the dom. The distance is possible calculated including the border. I think the solution is by putting the style in the CSS!

Revision history for this message
Dan Garner (dangarner) wrote :

Can you confirm which resolution you are using? I cannot recreate the problem here.

Changed in xibo:
status: New → Incomplete
milestone: none → 1.5.2
assignee: nobody → Dan Garner (dangarner)
Revision history for this message
Herbert Voordes (hvoordes) wrote :

I used different resolutions. We think it is in the border of the editor window. The border width = 1 and it is created by DOM (i think) So recalculating the coordinates wil give a wrong setoff of 1 pixel. You could try setting the editor border thrue CSS. Than the DOM calulations will not see the 1 pixel.

Kind regards,

Herbert Voordes

Revision history for this message
Dan Garner (dangarner) wrote :

I don't think its the border, it is more likely to be a rounding error converting from the designer resolution to the intended resolution - it is important that you answer my question because I cannot recreate the problem with the standard resolutions and the region sizing you have given.

Revision history for this message
Herbert Voordes (hvoordes) wrote :

I don't think its a rounding error. I changed the size of the editor to 1920x1080 and then i created the layout that fits exactly in these pixels. I have just installed a new environment and i'm gonna test it again as you say you cannot reproduce the problem. I'll write down all the steps so you can try exactly the same.

Regards, Herbert

Dan Garner (dangarner)
Changed in xibo:
milestone: 1.5.2 → 1.6.0-rc1
Changed in xibo:
milestone: 1.6.0-rc1 → 1.6.0
Dan Garner (dangarner)
Changed in xibo:
milestone: 1.6.0-rc2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.