EEXCESS / chrome-extension

Chrome extension for displaying cultural and scientific resources in the context of a web page. The extension integrates other modules like C4, the Visualization Widgets and PEAS.
2 stars 2 forks source link

Position of the search bar's content pane is not properly preserved #11

Closed schloett closed 9 years ago

schloett commented 9 years ago

If you scroll down on a page (e.g. English Wikipedia Main Page) and drag the pane afterwards, it will not show up anymore after reloading that page (because it is positioned somewhere on an area not in the viewport)

LadyBytes commented 9 years ago

Exchanging offset() for position() fixed the behaviour for me. But I don't want to close the issue until I'm sure it fixed it for you as well and I'm not overlooking something.

schloett commented 9 years ago

works fine for me, position seems to be preserved. However the size seems to be set to a fixed value (at least it does not preserve the previous size)

LadyBytes commented 9 years ago

Turns out my if-clauses weren't sufficient. Style additions made whenever a new size was detected were overridden by the following dragging style changes.