New in Sketch 2026.3
Stacks
The following properties have been added to Stacks to support new layout features in 2026.3:
-
StackLayout.bordersAffectLayouttoggles whether the largest protruding border on each item should be accounted for during layout calculations:frame.stackLayout.bordersAffectLayout = true -
StackLayout.gapcan now be negative to enable overlapping:frame.stackLayout.gap = -10 -
StackLayout.stackingOrdercontrols how overlapped items are displayed on the canvas:frame.stackLayout.stackingOrder = StackLayout.StackingOrder.FirstOnTop // .LastOnTop -
Individual Stack items now have optional
minSize,maxSize, andpercentageSize(for items with relative sizing) properties:frame.stackLayout = { ... } frame.layers[0].minSize = { width: 10, height: 15 } frame.layers[0].maxSize = { width: 88, height: 55 } frame.layers[1].update({ horizontalSizing: sketch.FlexSizing.Relative verticalSizing: sketch.FlexSizing.Relative }) frame.layers[1].percentageSize = { width: 0.5, height: 0.8 }
find()
-
Fixed the “less than or equal” predicate to work correctly on
frame:const layers = sketch.find(`[frame.height<=300]`)