Michael Telatynski
4207d182cd
Enable strictFunctionTypes ( #11201 )
2023-07-07 13:37:26 +01:00
Michael Telatynski
be5928cb64
Conform more of the codebase to strictNullChecks ( #10672 )
...
* Conform more of the codebase to `strictNullChecks`
* Iterate
* Iterate
* Iterate
* Iterate
* Conform more of the codebase to `strictNullChecks`
* Iterate
* Update record key
2023-04-21 11:50:42 +01:00
Michael Telatynski
daad630827
Conform more of the codebase to `strictNullChecks` ( #10602 )
...
* Conform more of the codebase to `strictNullChecks`
* Conform more of the codebase to `strictNullChecks`
* Fix types
2023-04-17 08:31:58 +01:00
Neeraj Vageele
c8585be2f8
fix resize to only work with left mouse click ( #10546 )
...
Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
Co-authored-by: Kerry <kerrya@element.io>
2023-04-11 06:13:11 +00:00
Kerry
31a959efe9
Apply `strictNullChecks` to `src/resizer/*` ( #10378 )
2023-03-15 20:27:59 +00:00
Michael Telatynski
76b82b4b2b
Make more code conform to strict null checks ( #10219
...
* Make more code conform to strict null checks
* Fix types
* Fix tests
* Fix remaining test assertions
* Iterate PR
2023-02-24 15:28:40 +00:00
Michael Telatynski
145a5a8a8d
Conform more code to strict null checking ( #10153 )
...
* Conform more code to strict null checking
* Conform more code to strict null checking
* Iterate
* Iterate
2023-02-15 13:36:22 +00:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Michael Telatynski
030b7e90bf
Enable `@typescript-eslint/explicit-function-return-type` in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Michael Telatynski
f1e8e7f140
Enable `@typescript-eslint/explicit-member-accessibility` on /src ( #9785 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
2022-12-16 12:29:59 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Michael Telatynski
964c60d086
Apply corrections identified by SonarQube ( #8457 )
2022-05-03 22:04:37 +01:00
Timo
773b147a03
Add a condition to only activate the resizer which belongs to the clicked handle ( #7055 )
2021-11-02 11:48:50 +00:00
Šimon Brandner
d4665979b8
Fix resizer
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-09-22 08:29:04 +02:00
Šimon Brandner
9377548630
Don't require a non-null container
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-09-20 16:36:37 +02:00
Dariusz Niemczyk
d8e7fd3634
Fix resizer for detaching
2021-08-24 18:22:06 +02:00
Dariusz Niemczyk
7645e0413c
Fix resizer crashing jitsi
2021-08-24 16:06:10 +02:00
Dariusz Niemczyk
ab4934ba6c
Make eslint happy
2021-08-24 14:23:08 +02:00
Dariusz Niemczyk
41d444d7d7
Properly use item container
2021-08-24 13:08:31 +02:00
Dariusz Niemczyk
a5c005756e
Fix resizer on left panel
2021-08-24 13:05:46 +02:00
Dariusz Niemczyk
27dbd172b0
Fix resizer to properly find children
2021-08-23 16:18:14 +02:00
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
2021-06-29 13:11:58 +01:00
Michael Telatynski
4e93452275
Tweak resizer collapse distributor behaviour to work with the expanding space panel
2021-03-02 14:02:03 +00:00
Michael Telatynski
a5468c918e
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/feat/widgets
...
Conflicts:
src/resizer/distributors/collapse.ts
src/resizer/distributors/fixed.ts
src/resizer/index.ts
src/resizer/item.ts
src/resizer/resizer.ts
src/resizer/sizer.ts
2020-10-21 09:56:22 +01:00
Michael Telatynski
01498653d8
update copyrights
2020-10-20 23:42:12 +01:00
Michael Telatynski
329ded92c1
Convert resizer to Typescript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-20 11:03:03 +01:00
Michael Telatynski
f198b95579
Iterate PR; tidy and improve widget context menu
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-15 15:24:42 +01:00
Michael Telatynski
a6c81a903c
Iterate with new buttons and resize locking
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-15 11:14:48 +01:00
Michael Telatynski
447ea9eb23
Relax flexboxes in resizer on window resize
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-13 16:11:58 +01:00
Michael Telatynski
1a45d18b94
Iterate the resizer
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-13 12:28:23 +01:00
Michael Telatynski
340e79179e
Convert Resizer to Typescript and create a Percentage based sizer
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-12 16:47:04 +01:00
Michael Telatynski
cffe902504
Add feature to ResizeNotifier to maintain isResizing state and use it to skip onScroll handling
2020-09-02 12:00:35 +01:00
Michael Telatynski
ae65ed5c2e
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into resizable-appsdrawer
...
Conflicts:
res/css/views/rooms/_AppsDrawer.scss
2020-08-20 10:26:35 +01:00
Travis Ralston
52219a8341
Remove legacy resizing code
2020-07-17 15:18:42 -06:00
Pauli Virtanen
11438aeee6
Fix resizer/sizer.js mouse event offset calculation
...
The event coordinates are document coordinates, so the offset they are
compared to should also be the document one.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-30 20:14:48 +03:00
Travis Ralston
0b0fe92b17
Convert resizer to ES6
2019-12-22 20:57:46 -07:00
J. Ryan Stinnett
1dc2ae007f
Fix soft crash on room join
...
This fixes a soft crash that can happen on room join if you keep the right panel
open (which is the default). The `MainSplit` component was not properly testing
for the edge cases of when the resize container would be mounted.
Fixes https://github.com/vector-im/riot-web/issues/10997
2019-10-08 15:43:57 +01:00
Bruno Windels
f029aad9fa
rename to getLayout
2019-02-04 18:38:31 +00:00
Bruno Windels
d30ff13c18
pass the layout to the resizer as a lamba to avoid having the wrong layout when filtering
2019-02-04 15:09:44 +00:00
Bruno Windels
529c48d1b0
avoid whitespace and expand all matching section when filtering
2019-01-29 10:01:55 +01:00
Bruno Windels
8d1e105b50
add option for whitespace behaviour and handle height
2019-01-28 18:02:36 +01:00
Bruno Windels
88f25dec4d
don't over-constraint layout while resizing
...
adapting the approach taken in the prototype
2019-01-28 17:52:46 +01:00
Bruno Windels
b0bb4eb5ab
better naming
2019-01-28 16:30:34 +01:00
Bruno Windels
d833174d68
floor default section height
2019-01-28 16:29:34 +01:00
Bruno Windels
6e55ebdab7
better naming for anchor
2019-01-28 16:10:50 +01:00
Bruno Windels
dab1f30ab4
remove obsolete logging and comments
2019-01-28 16:08:38 +01:00
Bruno Windels
87720bac2e
add comments to fields
2019-01-28 16:03:08 +01:00
Bruno Windels
d56f77debe
ignore updates that don't change anything
2019-01-28 16:02:56 +01:00
Bruno Windels
14485b60be
assign default height after assigning new sections
...
also apply it to sections with value null
2019-01-28 16:00:28 +01:00
Bruno Windels
eaf212dd89
fix lint - bis bis
2019-01-28 15:28:56 +01:00