EZGUI icon indicating copy to clipboard operation
EZGUI copied to clipboard

The windows with different sizes corners drawn incorrectly.

Open llevkin opened this issue 9 years ago • 6 comments

As I understand it, the calculation of the height of the corners of the window comes on top of a couple of corners. If the height of the upper corners of the window and bottom different - there is a bug ...

llevkin avatar May 13 '15 11:05 llevkin

Can you please provide a screenshot or a live example. not sure to understand what you mean :)

alaa-eddine avatar May 13 '15 15:05 alaa-eddine

screen

Here... top and bottom corner and line have different height..

llevkin avatar May 13 '15 16:05 llevkin

I see what you mean now :) actually, there is no simple way to handle different corners sizes. because if I calculate the background height taking in consideration corner-tr and corner-br height, there will be the same problem if left corner and right corner have different size ....

the problem becomes worst if all corners have different sizes . this is why I assume that they all have same width/height.

there is a possible solution I see here, it'll be by adding possibility to change background paddings in all directions and accept negative paddings. in your case, a negative bottom bgPadding can solve the problem.

don't know if this workaround can fix your issue temporarly, but you can try to set bgPadding to negative value, it's not very clean but can avoid you waiting for the fix.

alaa-eddine avatar May 13 '15 16:05 alaa-eddine

The task in which the four corners are of different sizes - can not be solved and absurd. The task in which the left and right angles are equal and the upper and lower heights are not equal - solved. Such a structure is quite common interface. I think you still need to choose the starting point for the bottom (left / right) and the top (left / right) to determine the angles of elevation.

llevkin avatar May 13 '15 19:05 llevkin

But this is my imho, of course)

llevkin avatar May 13 '15 19:05 llevkin

yes this can be a solution, I'll see it don't add much complexity to the code. it's important to stabilise the code in next updates so I can implement the new components : tabs, and text input are planed :)

alaa-eddine avatar May 14 '15 12:05 alaa-eddine