Skip to content

Commit

Permalink
After CR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Sep 10, 2024
1 parent 17641ee commit 214f84d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,12 @@ class IbexaCustomTagUI extends Plugin {

setPanelContentMaxHeight() {
const { innerHeight: windowHeight } = window;
const { top: panelTopPosition } = this.balloon.view;
const { element: panelNode } = this.balloon.view;
const { top: panelTopPosition, element: panelNode } = this.balloon.view;
const panelHeader = panelNode.querySelector('.ibexa-custom-tag-panel-header');
const panelContent = panelNode.querySelector('.ibexa-custom-tag-panel-content');
const panelFooter = panelNode.querySelector('.ibexa-custom-tag-panel-footer');
const panelHeaderHeight = panelHeader?.offsetHeight || 0;
const panelFooterHeight = panelFooter?.offsetHeight || 0;
const panelHeaderHeight = panelHeader?.offsetHeight ?? 0;
const panelFooterHeight = panelFooter?.offsetHeight ?? 0;
const isPanelOverTopWindowEdge = panelTopPosition < 0;
const maxHeightValue = isPanelOverTopWindowEdge
? panelContent.offsetHeight - Math.abs(panelTopPosition)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@ class IbexaInlineCustomTagUI extends Plugin {

setPanelContentMaxHeight() {
const { innerHeight: windowHeight } = window;
const { top: panelTopPosition } = this.balloon.view;
const { element: panelNode } = this.balloon.view;
const { top: panelTopPosition, element: panelNode } = this.balloon.view;
const panelHeader = panelNode.querySelector('.ibexa-custom-tag-panel-header');
const panelContent = panelNode.querySelector('.ibexa-custom-tag-panel-content');
const panelFooter = panelNode.querySelector('.ibexa-custom-tag-panel-footer');
const panelHeaderHeight = panelHeader?.offsetHeight || 0;
const panelFooterHeight = panelFooter?.offsetHeight || 0;
const panelHeaderHeight = panelHeader?.offsetHeight ?? 0;
const panelFooterHeight = panelFooter?.offsetHeight ?? 0;
const isPanelOverTopWindowEdge = panelTopPosition < 0;
const maxHeightValue = isPanelOverTopWindowEdge
? panelContent.offsetHeight - Math.abs(panelTopPosition)
Expand Down
1 change: 0 additions & 1 deletion src/bundle/Resources/public/scss/_balloon-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

&__fields {
overflow: auto;

padding: calculateRem(8px) calculateRem(16px);

&--attributes {
Expand Down

0 comments on commit 214f84d

Please sign in to comment.