Revision: 16697
          http://sourceforge.net/p/skim-app/code/16697
Author:   hofman
Date:     2026-10-22 15:33:51 +0000 (Thu, 22 Oct 2026)
Log Message:
-----------
set constraints at once

Modified Paths:
--------------
    trunk/SKTimerView.m

Modified: trunk/SKTimerView.m
===================================================================
--- trunk/SKTimerView.m 2026-10-22 14:48:53 UTC (rev 16696)
+++ trunk/SKTimerView.m 2026-10-22 15:33:51 UTC (rev 16697)
@@ -69,15 +69,13 @@
         [imageView setToolTip:NSLocalizedString(@"Start timer", @"Tool tip 
message")];
         [imageView setTranslatesAutoresizingMaskIntoConstraints:NO];
         [self addSubview:imageView];
-        [NSLayoutConstraint activateConstraints:@[
-            [[imageView centerXAnchor] constraintEqualToAnchor:[self 
centerXAnchor]],
-            [[self centerYAnchor] constraintEqualToAnchor:[imageView 
centerYAnchor]]
-        ]];
         [self setTranslatesAutoresizingMaskIntoConstraints:NO];
         widthConstraint = [[self widthAnchor] 
constraintEqualToConstant:DEFAULT_WIDTH];
         [NSLayoutConstraint activateConstraints:@[
             widthConstraint,
-            [[self heightAnchor] constraintEqualToConstant:DEFAULT_HEIGHT]
+            [[self heightAnchor] constraintEqualToConstant:DEFAULT_HEIGHT],
+            [[imageView centerXAnchor] constraintEqualToAnchor:[self 
centerXAnchor]],
+            [[self centerYAnchor] constraintEqualToAnchor:[imageView 
centerYAnchor]]
         ]];
         [self setWantsLayer:YES];
         [[self layer] setCornerRadius:0.5 * DEFAULT_HEIGHT];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to