Skip to content

Commit

Permalink
UI: Move auto-open of inheritance slideout to next animation frame so…
Browse files Browse the repository at this point in the history
… that the width is calculated correctly
  • Loading branch information
vigorouscoding committed Feb 16, 2024
1 parent ef769f4 commit ba565e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion structr-base/src/main/resources/structr/js/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ let _Schema = {
});

if (LSWrapper.getItem(_Schema.schemaActiveTabLeftKey)) {
$('#' + LSWrapper.getItem(_Schema.schemaActiveTabLeftKey)).click();
_Helpers.requestAnimationFrameWrapper('schema_resize_slideout_correctly', () => {
$('#' + LSWrapper.getItem(_Schema.schemaActiveTabLeftKey)).click();
});
}

_Schema.init(null,() => {
Expand Down

0 comments on commit ba565e0

Please sign in to comment.