-
Notifications
You must be signed in to change notification settings - Fork 0
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
Quick Docs content jumps to top when resizing document window #12361
Comments
Comment by peterflynn It looks like the inline widget's DOM subtree may be getting removed & readded when the CM widget is refreshed. This might be causing Chrome to forget the scroll position. A similar thing happens when you scroll the inline widget too far out of view and then scroll back... |
Comment by peterflynn Here's a JSFiddle that demonstrates that effect: http://jsfiddle.net/RXdab/ Even an instantaneous, temporary removal from the DOM (click "No op") loses the scroll pos, at least in Chrome... |
Comment by iwehrman (CC Thanks for helping track this down! Sadly, I am still not smart enough to solve this. My only guess was to watch for |
Comment by pthiess
|
Comment by njx It doesn't seem likely we could fix this within the next day or two, since (from my cursory read of the issue) I think we'd probably need something in CodeMirror. It's probably hard to avoid having CM remove/add the widget on a refresh, but perhaps we could get Marijn to add an event that's dispatched when the widget node is readded. |
Comment by njx Hmmm...that wouldn't really help with the flickering issue |
Comment by iwehrman
|
Comment by peterflynn
Does the widget lose focus too if it had it? That'd be another thing we might want to save/restore using those same events down the road... |
Comment by njx Marking "F Quick Edit" even though this isn't strictly the same feature, since it's related to the same underlying infrastructure (inline widgets). |
Issue by dalcala
Tuesday Aug 20, 2013 at 00:07 GMT
Originally opened as adobe/brackets#4830
Description:
Quick Docs jumps to the top when resizing document window. This also happens with the inline color editor when using the new Kuler feature. See Edge Code bug https://git.corp.adobe.com/edge/edge-code/issues/266
Repro using Brackets Sprint 29 on Win 7 & Mac 10.8.
Repro steps:
body {
-webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}
Actual results:
Quick Docs content jumps to top when resizing document window.
Expected results:
Quick Docs content stays on the content section you were on when resizing document window.
Workaround:
Scroll back to the content section you were looking at.
The text was updated successfully, but these errors were encountered: