Aleksander Nowodzinski
|
36a5abd385
Internal: A warning should show up when a Rect instance is for an HTML element or a DOM range not belonging to a rendered DOM tree. Closes #178.
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
103198e2f7
Merge pull request #174 from ckeditor/t/173
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
ae8cc8add3
Updated manual test to match the API change.
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
1b235b603a
Corrected API docs.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
d68babc1a0
Docs: Fixed JSDoc errors.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
15d9d4c99d
Made dom/scroll module export hlper functions and an object for testing purposes.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
2259ba4a49
Aligned dom/position and dom/scroll modules to the latest Rect class API.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
9878640f6e
Code refactoring in the Rect class: removed static Rect.getViewportRect and replaced it with new Rect( window ). Introduced a new instance method #excludeScrollbarsAndBorders.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
26cbad94ad
Code refactoring and docs improvements in the dom/rect module.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
8746541b0c
Docs fixes and code refactoring in the getBorderWidths utility.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
21665dba4c
Tests: Updated stubs to the latest Sinon API.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
83580a7983
Merge branch 'master' into t/173
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
abf0c35e23
Internal: Updated eslint-config-ckeditor5. [skip ci]
|
8 gadi atpakaļ |
Kamil Piechaczek
|
51d37ed37a
Upgraded tests to the latest Chai and Sinon version.
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
2bb5b3ce8e
Internal: Updated eslint-config-ckeditor5. [skip ci]
|
8 gadi atpakaļ |
Kamil Piechaczek
|
d2b5ce3d2c
Upgraded tests to the latest Chai and Sinon version.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
2d612d7650
Merge branch 'master' into t/173
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
ebd738f38d
Docs: Fixed docs errors in the Rect class.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
27ee807567
Tests: Fixed scrollViewportToShowTarget manual test because the module importing strategy has changed.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
8080e17d39
Tests: Made the tests immune to the border-width-* styles in the test environment.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
fab20a71de
Tests: Fixed broken getBorderWidths() test.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
2b4e4615af
Exported an object containing methods instead of separate function exports in scroll.js.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
e1dddc5d02
Implemented the scrollViewportToShowTarget and scrollAncestorsToShowTarget helpers.
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
1b97289724
Docs: Added Gitter badge and standardized repo titles
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
93848801b5
Tests: Added manual test for scrollViewportToShowTarget helper.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
d7a9daf8b9
Used getBorderWidths() helper in getOptimalPosition().
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
ab167f71a9
Implemented Rect class methods #isEqual() and #contains(). Allowed exclusion of borders and scrollbars.
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
dbaad47df1
Implemented the getBorderWidths() DOM helper.
|
8 gadi atpakaļ |
Piotrek Koszuliński
|
c3b9656217
Merge pull request #172 from ckeditor/t/168
|
8 gadi atpakaļ |
Aleksander Nowodzinski
|
b1f09018dd
Other: Provided a static `Rect#getDomRangeRects` method for external usage. Closes #168.
|
8 gadi atpakaļ |