Skip to content

Add support for returning bounds of entire scroll area#788

Merged
jassmith merged 6 commits intoglideapps:5.3.1from
lukasmasuch:feature/return-scroll-bounds
Oct 6, 2023
Merged

Add support for returning bounds of entire scroll area#788
jassmith merged 6 commits intoglideapps:5.3.1from
lukasmasuch:feature/return-scroll-bounds

Conversation

@lukasmasuch
Copy link
Copy Markdown
Collaborator

This is a rough draft of how the entire scroll bounds could be returned via getBounds if cell and row are undefined (see #784). I did some manual testing, and it seems to align well with what is returned by getBounds for specific items. The height differs by one pixel when compared with the last cell bounds. But that is probably the border that is also included in the scroll area.

Copy link
Copy Markdown
Contributor

@jassmith jassmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, needs a couple tweaks.

@lukasmasuch lukasmasuch marked this pull request as ready for review October 5, 2023 17:12
@jassmith jassmith merged commit 40cfc4b into glideapps:5.3.1 Oct 6, 2023
jassmith added a commit that referenced this pull request Nov 26, 2023
* 5.3.1-alpha1

* Fix issue where data grid would not understand headers were not hovered when mouse over the rightElement

* Update prettier

* Modernize tooling

* Don't escape for commas, not needed

* Fix eslint

* 5.3.1-alpha2

* Improve naming of escape function

* Fix fuzzy drag handles, fixes #741

* Fix tests

* Resolve issue where editing would accidentally check the wrong cell for read/write.

* restore cyce  checking

* Ensure onCellClicked and renderer onClick events fire under the same conditions, fixes #690

* Fix paste eating some new lines

* 5.3.1-alpha3

* Fix clicking on scrollbars, fixes #762

* Hopefully fix source tests

* Implement cut and fix crasher in paste

* Fix cells tests

* Fix formatting issue with uri cells

* Add tests

* Overhaul copy/paste code to dramatically improve accuracy, compatibility, and remove accidentally encoding nbsp into users apps

* Fix an insane crash report

* Add a couple tests

* Increase test coverage

* Add more missing tests

* More missing tests

* Fix issue with apple numbers paste buffers

* Fix typo

* Add more tests

* More tests for image window loader

* Add distribution test

* Add support for returning bounds of entire scroll area (#788)

* Support returning bounds of entire scroll area

* Add scale to calculation

* Apply PR feedback

* Fix check

* Additional fix

* Fix docs

---------

Co-authored-by: Lukas Masuch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants