DialogService - When set to draggable it locks the height and width, so no longer dynamically changes with content #876

Closed
opened 2026-01-29 17:45:43 +00:00 by claunia · 1 comment
Owner

Originally created by @Dreagen on GitHub (Jun 9, 2023).

Describe the bug
If you have a draggable dialog, once moved it retains a fixed height and width. If the dialog contains content that changes height, i.e an expandable DataGrid, the dialog no longer expands with its content (which it does correctly until you drag the dialog)

To Reproduce
Steps to reproduce the behavior:

  1. Create a draggable dialog with some expandable content inside
  2. Open the dialog and before dragging it expand the content, the dialog will expand with the content.
  3. Close the expandable content, drag the dialog.
  4. Open the expanable content and note the dialog no longer expands with the content, you get a scroll bar instead.

Expected behavior
Diaglog expands with it's content like it would do prior to dragging.

Screenshots
image

Desktop (please complete the following information):

  • Browser [Chrome, Firefox]
  • Version [4.13.0]

Additional context
I have a fix I can push up as a PR if you wish, would be happy to discuss and adjust accordingly

Originally created by @Dreagen on GitHub (Jun 9, 2023). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** If you have a draggable dialog, once moved it retains a fixed height and width. If the dialog contains content that changes height, i.e an expandable DataGrid, the dialog no longer expands with its content (which it does correctly until you drag the dialog) **To Reproduce** Steps to reproduce the behavior: 1. Create a draggable dialog with some expandable content inside 2. Open the dialog and before dragging it expand the content, the dialog will expand with the content. 3. Close the expandable content, drag the dialog. 4. Open the expanable content and note the dialog no longer expands with the content, you get a scroll bar instead. **Expected behavior** Diaglog expands with it's content like it would do prior to dragging. **Screenshots** ![image](https://github.com/radzenhq/radzen-blazor/assets/5364054/1e3385b0-9f4f-4940-aca5-b4e263e8d466) **Desktop (please complete the following information):** - Browser [Chrome, Firefox] - Version [4.13.0] **Additional context** I have a fix I can push up as a PR if you wish, would be happy to discuss and adjust accordingly
Author
Owner

@enchev commented on GitHub (Jun 20, 2023):

Fixed in a020e06c3d

@enchev commented on GitHub (Jun 20, 2023): Fixed in https://github.com/radzenhq/radzen-blazor/commit/a020e06c3db83f2b92db7e640ee8f1d79a5afb9f
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#876