After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613388 - Second anchor for subshapes
Second anchor for subshapes
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: shapes
devel
Other All
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-20 09:12 UTC by Steffen Macke
Modified: 2019-03-20 11:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steffen Macke 2010-03-20 09:12:08 UTC
Subshapes currently have a fixed size (AFAIK).
I would like to introduce a second set of anchors to allow for scaling.

dia:v_anchor2             The vertical anchoring of the subshape. Supported values are:
                          "fixed.top"
                          "fixed.bottom"
                          "proportional"

dia:h_anchor2             The horizontal anchoring of the subshape. Supported values are:
                          "fixed.left"
                          "fixed.right"
                          "proportional"

I'm attaching an image that illustrates the basic problem I would like to solve:
A shape that is split into two parts. The height of the upper rectangle should be constrained, while the shape itself can scale freely.
I would suggest the following anchors for the upper rectangle:

v_anchor="fixed.top" v_anchor2="fixed.top"
h_anchor="fixed.left" v_anchor2="fixed.right"

For backwards compatibility, the *_anchor2 attributes are optional. When they are omitted, the current fixed-size subshape behaviour is preserved.

In short: The second set of anchors defines the subshape bounding box in relation to the main shape.

Do you think this is a feasible concept? Did I miss anything?
Comment 1 Hans Breuer 2010-03-22 20:39:43 UTC
(In reply to comment #0)
> Subshapes currently have a fixed size (AFAIK).
Subshapes can be resized by holding shift during the handle movement (at least most of them). Otherwise they should maintain their size.
At the moment there is no provision to resize width and height of subshapes independently, but this does not seem to be what you are asking for?
Comment 2 Steffen Macke 2010-03-23 20:11:46 UTC
Thanks for the feedback. I wasn't aware of the Shift subshapes resize.
However, subshapes seem to have a fixed aspect ratio - is that correct?
Comment 3 Hans Breuer 2010-03-23 22:03:17 UTC
Yes, this is what I tried to say with my last sentence.
Comment 4 GNOME Infrastructure Team 2019-03-20 11:48:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/280.