Skip to content

Commit 974a098

Browse files
author
Markus
committed
- focus item now got some offset
- searchfield get focus when open
1 parent 41c3b51 commit 974a098

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3434
### Added
3535
- categorizedEnumPopup can now frame items
3636

37-
## [0.1.5] - 2023-08-14
37+
## [0.1.6] - 2023-08-14
3838
### Changed
3939
- fixed loading the uxml from guid
40+
41+
## [0.1.7] - 2023-09-08
42+
### Changed
43+
- focus item now got some offset
44+
- searchfield get focus when open

Editor/CategorizedEnumPopup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public CategorizedEnumPopup(char delimiter, bool showFullPath, string[] enumName
5050
// setup the search field
5151
searchField = new SearchField();
5252
searchField.downOrUpArrowKeyPressed += treeView.SetFocus;
53+
searchField.SetFocus();
5354

5455
// set the window width that should be used.
5556
this.windowWidth = windowWidth;

Editor/CategorizedEnumTreeView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ private void FocusByName(string name) {
139139

140140
if (selectedItem != null) {
141141
FrameItem(selectedItem.id);
142+
state.scrollPos.y -= 50;
142143
}
143144
}
144145

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.gentlymadstudios.editorui",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"displayName": "EditorUI",
55
"description": "Editor UI by Gentlymad Studios.",
66
"unity": "2022.2",

0 commit comments

Comments
 (0)