Skip to content

Commit

Permalink
Merge pull request #455 from Lemoncode/#376/fix/enable-modify-button-…
Browse files Browse the repository at this point in the history
…height

#376 now we can edit button height
  • Loading branch information
brauliodiez authored Oct 17, 2024
2 parents 83b8654 + f2baf9c commit 987b732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const buttonShapeRestrictions: ShapeSizeRestrictions = {
minWidth: 50,
minHeight: 35,
maxWidth: -1,
maxHeight: 35,
maxHeight: 100,
defaultWidth: 100,
defaultHeight: 35,
};
Expand Down Expand Up @@ -68,9 +68,9 @@ export const ButtonShape = forwardRef<any, ShapeProps>((props, ref) => {
/>
<Text
x={0}
y={10}
width={width}
height={height - 10}
y={restrictedHeight / 2 - 5}
width={restrictedWidth}
height={restrictedHeight - restrictedHeight / 2 - 5}
text={text}
fontFamily={BASIC_SHAPE.DEFAULT_FONT_FAMILY}
fontSize={15}
Expand Down
1 change: 0 additions & 1 deletion src/pods/canvas/model/transformer.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const generateTypeOfTransformer = (shapeType: ShapeType): string[] => {
switch (shapeType) {
case 'label':
case 'input':
case 'button':
case 'combobox':
case 'line':
case 'listbox':
Expand Down

0 comments on commit 987b732

Please sign in to comment.