-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsPanel not working inside a container which is scaled by css transfrom #46
Comments
@akstek |
@Flyer53 Thank you for your fast reply. If you need further information or any other assistence pls let me know, |
@akstek I made a little bit of research myself and think it's not just the mouse delta causing this. For positioning, dragging and resizing the scripts needs "true and current" readings of left/top and/or width/height values. But the only way to get those values after a css tranformation seems to be Do I miss something? Do you know another way to get proper values after a css transformation? |
@Flyer53 |
@akstek |
@Flyer53 |
@Flyer53 |
Just wanted to take a look at your latest fiddle. It seems the jsPanel script is not loaded. |
Sorry for that, but it seems we have a company policy applied that removes public shares from our personal one drive storage periodically. So here is the updated fiddle. |
@akstek |
Let me now if you need any assistence |
Spent some time with your modifications:
Question: Your file modified: |
Thank you! I highly appreciate your hard work. The reason why I cache the scale factors is, that the calculation forces the browser to layout and reflow. So this directly impacts the rendering performance. |
... but in My current development file (don't mind the version number) that does without caching and where the scale factor calculation is done in the I even think of moving the scale factor calculation to a point just after the panel was inserted to its container. So it runs only once during the lifetime of the panel and you would only have to do a recalc only if the scaling changes ... Thanks for the link ... very interesting :) |
Options |
Cool, i am a bit busy right now, but i will test your code during the weekend. |
OK, I found some time and tested your version in our scaled enviroment and everthing seems to work as it shoud (at least for the features we use). Good to see that the getscalectorfactor() method is now a method of the panel itself, was easy to override and integrate with our central variable cache system. Good work @Flyer53 ! |
Sounds good to me :) |
Sounds cool. Looking forward to get the hands on the new release! |
If you want to take a look at the latest 4.3.0-alpha just go to https://alpha.jspanel.de/index.html Changelog:
Download latest alpha |
Thank you @Flyer53! Currently I am on vacation but I will take a look after my return next week! |
@akstek Enjoy the days off 😃 |
@Flyer53 We tested your new alpha and it works fine in our enviroment |
Issue solved with release of v4.3.0 |
If I create a jsPanel inside a container which has a scale transformation applied and you drag or resize the panel, the position or the size is calculated wrong, because the delta of the mouse movement does not take the applied scale factor into account. Also syncMarging does not work as expected.
Demonstration: https://jsfiddle.net/kh5xj6f9/35/
The text was updated successfully, but these errors were encountered: