Revision: 27701
          http://sourceforge.net/p/bibdesk/svn/27701
Author:   hofman
Date:     2022-07-06 20:58:33 +0000 (Wed, 06 Jul 2022)
Log Message:
-----------
update right margin of progress indicator

Modified Paths:
--------------
    trunk/bibdesk/BDSKStatusBar.m

Modified: trunk/bibdesk/BDSKStatusBar.m
===================================================================
--- trunk/bibdesk/BDSKStatusBar.m       2022-07-06 19:20:48 UTC (rev 27700)
+++ trunk/bibdesk/BDSKStatusBar.m       2022-07-06 20:58:33 UTC (rev 27701)
@@ -296,11 +296,14 @@
 - (void)setLeftMargin:(CGFloat)margin {
     leftMargin = margin;
     [[self constraintWithFirstItem:textField 
firstAttribute:NSLayoutAttributeLeading] setConstant:[self fullLeftMargin]];
+    [self setNeedsDisplay:YES];
 }
 
 - (void)setRightMargin:(CGFloat)margin {
     rightMargin = margin;
     [[self constraintWithSecondItem:textField 
secondAttribute:NSLayoutAttributeTrailing] setConstant:[self fullRightMargin]];
+    if (progressIndicator)
+        [[self constraintWithSecondItem:progressIndicator 
secondAttribute:NSLayoutAttributeTrailing] setConstant:rightMargin + 
[progressIndicator alignmentRectInsets].right];
 }
 
 #pragma mark Icons

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to