Skip to content

Commit

Permalink
fix overlapping colorstops being unmovable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzielenski committed Aug 15, 2014
1 parent d68d251 commit 9661c75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ThemeEngine/src/views/CFTGradientEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,11 @@ - (CFTGradientStopLayer *)_addStop:(CUIPSDGradientStop *)stop colorStop:(BOOL)is
[self _startObservingStop:stop];
layer.frame = CGRectMake(0, 0, kCFTStopSize, kCFTStopSize);

if (stop.isMidpointStop)
layer.zPosition = 1;
else
layer.zPosition = 1000;

if (isColorStop) {
if (stop.isMidpointStop)
[self.colorMidpointStopLayers addObject:layer];
Expand Down

0 comments on commit 9661c75

Please sign in to comment.