← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1546546] [NEW] ProportionalShape is a square if width == 8gu

 

Public bug reported:

ProportionalShape {
    width: units.gu(8)
    ...
}

does not generate a 16:15 shape, but a 1:1 shape. Looking at the code,
it seems that that's because the default size of a UbuntuShape is 8gu,
so when setting that size on the ProportionalShape doesn't cause the
emission of the widthChanged() signal and consequently skips the
execution of the code in ucproportionalshape.cpp which should update the
height.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1546546

Title:
  ProportionalShape is a square if width == 8gu

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  ProportionalShape {
      width: units.gu(8)
      ...
  }

  does not generate a 16:15 shape, but a 1:1 shape. Looking at the code,
  it seems that that's because the default size of a UbuntuShape is 8gu,
  so when setting that size on the ProportionalShape doesn't cause the
  emission of the widthChanged() signal and consequently skips the
  execution of the code in ucproportionalshape.cpp which should update
  the height.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1546546/+subscriptions


Follow ups