Opened 11 years ago
Last modified 11 years ago
#11593 confirmed Bug
[Image2] If only one dimension is set the missing one should not be set when resizing image
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.3 |
Keywords: | Cc: |
Description (last modified by )
TC1:
- Open image2 sample.
- Doubleclick image.
- Change the width to 300.
- See that height was set too although it was empty at the beginning. I'd expect that it was left empty.
Notice that in step 2 "keep ratio" is on. I think that it's ok, because it tells user that ratio will be kept if he changes size, which is true because the missing dimension is calculated automatically.
TC2:
- Open image2 sample.
- Doubleclick image to verify that only width is set. Close the dialog.
- Resize image using handler.
- Doubleclick image.
- See that both dimensions are set now.
- Edit: TC2 is not about reading dimensions by dialog but about editor calculating both dimensions. In HTML when only one dimension is set the other one is automatically calculated by browser so we should not interfere it.
Change History (4)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by
I understand @Reinmar point of view. What he means is when you have only one dimension set in HTML and you change it, browser will automatically calculate another dimension thus we should not do or set anything for height in this particular case. I however have some doubts about this approach because:
- When you open image2 properties, lock is locked which means keep aspect ratio option is enabled and height will be calculated whenever width is changed. This makes sense to me and is what I expect and what I'm used to because desktop graphic programs work the same way.
I think what is needed here is configuration option to keep "aspect ratio" open or closed when dialog is opened. That way both point of views can be satisfied.
- When I resize image2 manually, arrow that is shown suggests that I will be resizing both dimensions - width and height. Again this is what I would expect. I resize both dimensions thus, both of them IMO should be set and this is what editor does at the moment – calculates both dimensions as resize arrow indicates.
comment:4 Changed 11 years ago by
Status: | new → confirmed |
---|
I think that it's a matter of some preferences or understanding and control over the HTML behind. I understand your points too, but personally I expect something different. I'm confirming this issue, but we'll wait for user reports to see if they expect a change and in which direction.
cc