Skip to content

Commit

Permalink
Fix - issue where sidebar observer was not reinitialized on resizing …
Browse files Browse the repository at this point in the history
…the window (layout changes).
  • Loading branch information
Azmoria committed Jan 24, 2025
1 parent 8295b68 commit 05349e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CharactersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,9 @@ function convertToRPGRoller(){
});
}


const debounceObserverSetup = mydebounce(function(){
observe_character_sheet_changes($('#site-main, .ct-sidebar__portal'));
}, 200);

/** actions to take on the character sheet when AboveVTT is NOT running */
async function init_character_sheet_page() {
Expand Down Expand Up @@ -741,6 +743,7 @@ async function init_character_sheet_page() {
// observe window resizing and injeect our join/exit button if necessary
window.addEventListener('resize', function(event) {
inject_join_exit_abovevtt_button();
debounceObserverSetup();
});

if(!is_abovevtt_page()){
Expand Down
1 change: 1 addition & 0 deletions abovevtt.css
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,7 @@ body:not(.body-rpgcampaign-details) .sidebar__pane-content {

.ct-sidebar__inner [class*='styles_gap']{
border:none;
height:0px;
}

.avtt-sidebar-controls .tab-btn,
Expand Down

0 comments on commit 05349e2

Please sign in to comment.