question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compact leaves blank space left between widgets in random situations.

See original GitHub issue

Hello!

I have noticed that, in some cases, when the widgets arrange themselves (e.g. coordinates are not specified or after moving widgets that affect the position of many others), you are left with a weird blank space like shown below:

image

If the user tries to move that widget or the screen size changes, it gets to where it was supposed to be. Even switching between browser tabs or simply refreshing the page could lead to the widget rearranging itself. I’ve tried many times to reproduce this on your demo page, but I never could do it. Do you have any idea where I should look for in order to debug this?

Here’s my config:

gridsterOptions: GridsterConfig = {
    compactType: 'compactUp&Left',
    gridType: 'fixed',
    maxCols: DashboardComponent.GRIDSTER.maxCols,
    maxRows: DashboardComponent.GRIDSTER.maxRows,
    // fixedColWidth: calculated based on [container's width / max columns]
    fixedRowHeight: DashboardComponent.GRIDSTER.fixedRowHeight,
    maxItemRows: DashboardComponent.GRIDSTER.maxItemRows,
    margin: DashboardComponent.GRIDSTER.margin,
    mobileBreakpoint: DashboardComponent.GRIDSTER.mobileBreakpoint,
    outerMargin: true,
    keepFixedHeightInMobile: true,
    keepFixedWidthInMobile: false,
    pushItems: this.customizeState,
    swap: this.customizeState,
    ignoreMarginInRow: true,
    draggable: {
        enabled: this.customizeState,
        ignoreContent: true,
        dragHandleClass: 'gridster-drag-handle',
    },
    resizable: {
        enabled: this.customizeState,
    }
};

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tiberiuzuldcommented, Feb 27, 2018

Fixed in 4.7.0

0reactions
NoMercy235commented, Feb 27, 2018

Works perfectly! Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I prevent unwanted padding at the top and bottom of ...
If it is enabled, but there are no widgets assigned to it, then it may appear as a blank space. Disabling an empty...
Read more >
Qt remove empty space between widgets on QVBoxLayout
"Invisible" margin of a default widget remains even if the spacing of the layout has been set to 0. Soultion. If you really...
Read more >
Design Section | Mendix Documentation
Describes the Design section in widgets properties in Mendix Studio.
Read more >
assorted_layout_widgets | Flutter Package - Pub.dev
A lot of widgets like ColumnSuper, RowSuper, FitHorizontally, Box, ... You can also use a RowSpacer to add empty space (if available) between...
Read more >
The Complete Guide to WordPress Widgets: How to Use, Add ...
Learn how to add, use, and code WordPress widgets from scratch. ... have their own plugins, available free via the plugin directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found