online icon indicating copy to clipboard operation
online copied to clipboard

scrollWindow: fix view scrolling

Open meven opened this issue 1 year ago • 2 comments

Change-Id: I54990645d17e1e352397f1d57b4cc671af6b5839

  • Resolves: #9770
  • Target version: master

Summary

  • make scrollWindow height fix
  • special case data.horizontal.page_size == 0
  • improve computation of rowHeight
  • don't resize dynamically dimensions based on dom changes

Checklist

  • [x] I have run make prettier-write and formatted the code.
  • [x] All commits have Change-Id
  • [x] I have run tests with make check
  • [x] I have issued make run and manually verified that everything looks okay
  • [ ] Documentation (manuals or wiki) has been updated or is not required

meven avatar Aug 21 '24 13:08 meven

It works nice in most of the cases, but still has problems with vertical scrolling in "managed by user" mode.

symbols-2024-08-22_10.36.24.webm

It worked in the past before regression commit, it was also not doing "scrolling animation" so UI looked less buggy/jumping.

eszkadev avatar Aug 22 '24 08:08 eszkadev

The use cases to test:

In calc:

  • function wizard, select AGGREGATE and try to scroll
  • insert symbol
  • properties > custom properties tab.

meven avatar Aug 22 '24 10:08 meven

This works bad: scroll-2024-08-30_08.54.08.webm

I used keyboard (arrow down) in symbol dialog.

Please see how it works with the reverted version (current master): scroll-2024-08-30_08.57.03.webm

Can we just setup the size of scroll window in the file properties dialog for custom properties using CSS? I think behavior now is ok, only look of custom properties tab is not good.

eszkadev avatar Aug 30 '24 06:08 eszkadev

Can we just setup the size of scroll window in the file properties dialog for custom properties using CSS?

The content size is dynamic in the custom properties and function wizard, there it is not possible and in the symbol dialog it would break when we add new symbols.

meven avatar Sep 02 '24 09:09 meven

This works bad: scroll-2024-08-30_08.54.08.webm

I used keyboard (arrow down) in symbol dialog.

I noticed it, I have an idea how to fix that.

meven avatar Sep 02 '24 09:09 meven

Can we just setup the size of scroll window in the file properties dialog for custom properties using CSS?

The content size is dynamic in the custom properties and function wizard, there it is not possible and in the symbol dialog it would break when we add new symbols.

@meven with current master (with revert) it works well in all of these dialogs apart custom properties.

Really isn't it enough to fix custom properties sizing on top of current master ? Like some CSS: to make scroll-window height depending on height of the dialog and rest of the items static.

eszkadev avatar Sep 02 '24 14:09 eszkadev

Really isn't it enough to fix custom properties sizing on top of current master ? Like some CSS: to make scroll-window height depending on height of the dialog and rest of the items static.

My patches sets the scroll-window "view" height, in browser/css/jsdialogs.css. But that's the content-height that's dynamic.

meven avatar Sep 03 '24 12:09 meven

not needed currently: other PR was merged

eszkadev avatar Oct 11 '24 16:10 eszkadev