From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
JackDunaway

Snap-to-Center Labels need to stay in center of parent object

Status: New

Check out the below image.

 

Step 1: Two BD objects were created with labels shown at 120px wide, then the label was dragged to the center of the object.

Step 2: The object was resized from 120px down to 60px

Step 3: The object was resized back to 120px.

 

Notice, the labels do not stay in the center (they need to). Also, notice the snapping behavior of these two objects differs as object is resized. Similar scenario occurs on FP objects.

 

MessedUpLabels.png

 

This post is partially a bugfix/partially related to my own experimentation of this post.

3 Comments
altenbach
Knight of NI

This is actually more complicated, because the behavior depends on the justification setting of the label.

 

Select the label and pick "justification...centered" and it will stay in the center!

Same if the label is left aligned, it will stay with the left edge.

etc....

 

It seems the correct combination of alignment setting and placement will get you almost there. Still, I agree this is too convoluted and should be more reasonable automatically. 🙂

M*H*
Member

I think that the justify-setting should be adjusted automatically if the move-and-snap-feature has been used on a size-to-text-label. Changing the justification on such a label has no visible effect, but improves the alignment after further text changes.

 

So - Kudos!

GregSands
Active Participant

Kudos to the idea of automatic setting of justification depending on where the label is moved.  Is there any case where that is not the desired behavior?