forked from CodeEditApp/CodeEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
contentInsets
Parameter (CodeEditApp#141)
# Description This PR adds a `contentInsets` parameter that lets users set an inset object for the editor. It also updates `STTextView` to be able to set the left inset correctly. When left `nil` the scroll view will use automatic insets. This also doesn't override the overscroll option, but rather adds the overscroll after the insets are applied. # Related Issues - [Discord discussion](https://canary.discord.com/channels/951544472238444645/954084547694325861/1075085722211581952) - [STTextView commit](krzyzanowskim/STTextView@06d8f33) # Screenshots Adding top and left insets: <img width="741" alt="Screenshot 2023-02-14 at 3 09 57 PM" src="https://user-images.githubusercontent.com/35942988/218863914-8869e185-cd21-45a7-a7aa-58387ea778ea.png"> Adding left and bottom insets (scroller is also inset): <img width="835" alt="Screenshot 2023-02-14 at 3 10 15 PM" src="https://user-images.githubusercontent.com/35942988/218863899-99d2b124-fc96-418a-9869-d6897a7baea4.png">
- Loading branch information
1 parent
14f82ff
commit d83b449
Showing
4 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters