Issue #153: Fix widget resizing when left panel is open
Issue #182: Fix widget resize when bottom and right attributes are specified