Certain views/cards scale with text when added, but moving them scales them to default size #374

Closed
opened 2026-04-16 12:54:02 +00:00 by a24vinla · 3 comments
Collaborator

This is the card when added:
image
When clicked once in edit mode
image

The card showing way to much information is also a bug, but this is related to how the cards scale

This is the card when added: ![image](/attachments/42c91d4e-d61a-4f34-84c5-bbbe80b17c68) When clicked once in edit mode ![image](/attachments/ae18d080-0a66-4d6a-b7cb-36d54cf59899) The card showing way to much information is also a bug, but this is related to how the cards scale
Collaborator

The reason for this bug is that there is no onLayoutChange function (to change the card position and size variables) for the grid layout, so the issue is that when a card is moved, its w and h variables are set to the values it was created with (1 and 2). When the card is moved, it is re-rendered with these values, hence why large cards shrink. The onLayoutChange is implemented in #398 to update the size and position.

This creates a new issue where new cards start with the standard variables. To fix this issue, new cards should scale with it's content. Therefore i suggest closing this issue and opening a new one.

The reason for this bug is that there is no onLayoutChange function (to change the card position and size variables) for the grid layout, so the issue is that when a card is moved, its w and h variables are set to the values it was created with (1 and 2). When the card is moved, it is re-rendered with these values, hence why large cards shrink. The onLayoutChange is implemented in #398 to update the size and position. This creates a new issue where new cards start with the standard variables. To fix this issue, new cards should scale with it's content. Therefore i suggest closing this issue and opening a new one.
Collaborator

The "new" issue might be fixed in pull request #410 , so there may not be any need for a new issue for this.

The "new" issue might be fixed in pull request #410 , so there may not be any need for a new issue for this.
Collaborator

Closed by accident

Closed by accident
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#374
No description provided.