emreeren / SambaPOS-3

Touch Screen Restaurant POS
sambapos.com
471 stars 413 forks source link

Angles-Problem on custom entity-placements #195

Closed Stelzi79 closed 11 years ago

Stelzi79 commented 11 years ago

When you put in a angle like 270° (entity verticaly up with writing form bottom to up) you get very couter intuitive behavings. Mainly the height and width are reverted and the point of origin changes to the lower-left corner (this isn't the main issue). When you want to change the height and widith with the mouse with the accordent drag-marks you get a completly strange behavoir where it moves it height and width to funny values. This is a very offputting behavoir. Another bug is where it calculates the zoom (when you place a entity outside the placement-area it zooms-out to view all). It zooms-out but there is enought space to accommodate it in the placement-area!. If you have to place such a entity on the egde of the placement-area it is a very unpleasand sideefect of placing such a angled entity.

emreeren commented 11 years ago

I've used WPF InkCanvas control there and it seems it behaves buggy when items are rotated. I found a bug submission about that on Microsoft QA site but there is no information for a workaround yet. Until MS resolves this it will be better to resize rotated items by changing height and width properties. I've added spinners for easier positioning.

emreeren commented 11 years ago

I'm closing it since we'll wait a solution from microsoft.