Skip to content

Commit

Permalink
Merge pull request smeup#2195 from smeup/INP-for-INL
Browse files Browse the repository at this point in the history
fix/absolute pos INP not showing fields without width
  • Loading branch information
lucafoscili authored Nov 18, 2024
2 parents 0f341a2 + 09f99c3 commit 1df5e70
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,13 +660,26 @@ export class KupInputPanel {
);
}

const width = `${getAbsoluteWidth(section.absoluteWidth)}px`;
const height = `${getAbsoluteHeight(section.absoluteHeight)}px`;
//If width is not specified the div in the return at the end can be removed
if (getAbsoluteWidth(section.absoluteWidth) == null) {
return content;
}

const width = `${
getAbsoluteWidth(section.absoluteWidth) != null
? `${getAbsoluteWidth(section.absoluteWidth)}px`
: '100%'
}`;
const height = `${
getAbsoluteHeight(section.absoluteHeight) != null
? `${getAbsoluteHeight(section.absoluteHeight)}px`
: '100%'
}`;
const top = `${getAbsoluteTop(section.absoluteRow)}px`;
const left = `${getAbsoluteLeft(section.absoluteColumn)}px`;

const sectionStyle = {
position: 'absolute',
position: 'relative',
width,
'min-width': width,
'max-width': width,
Expand Down

0 comments on commit 1df5e70

Please sign in to comment.