[Cuis-dev] Layout changes

Hilaire Fernandes hilaire at drgeo.eu
Wed Sep 29 08:20:14 PDT 2021


Hi,

I saw recent changes in Layout. After updating image, now, DrGeo windows 
looks wrongly like this:

I use a transparent morph as an elastic morph. Maybe it does not work 
anymore with the recent changes?

Installation code is:

installTools
" Install menu, toolbar, tree, wheels, statusbar "
     | row col |
     row _ LayoutMorph newRow.
     row addMorphUseAll: self window drawable.
     col _ LayoutMorph newColumn name: #wheelsYZ.
     self isWheelZ ifTrue: [
         col addMorph: self zoomWheel layoutSpec: (LayoutSpec
             fixedExtent: DrGeoSystem wheelWidth @ DrGeoSystem 
wheelHeight)].
     col addMorphUseAll: self transparentMorph.
     self isWheelY ifTrue: [
         col addMorph: self verticalWheel layoutSpec: (LayoutSpec
             fixedExtent: DrGeoSystem wheelWidth @ DrGeoSystem 
wheelHeight)].
     row addMorph: col layoutSpec: (LayoutSpec fixedWidth: DrGeoSystem 
wheelWidth proportionalHeight: 1).
     self window addMorph: row.
     row _ LayoutMorph newRow axisEdgeWeight: #rowRight; name: #wheelX; 
yourself.
     self isWheelX ifTrue: [
         row addMorph:self horizontalWheel layoutSpec: (LayoutSpec
             fixedExtent: DrGeoSystem wheelHeight @ DrGeoSystem 
wheelWidth)].
     row addMorph: self transparentMorph layoutSpec: ((LayoutSpec
             fixedExtent: DrGeoSystem wheelWidth asPoint) 
offAxisEdgeWeight: #columnRight).
     self window addMorph: row layoutSpec: (LayoutSpec fixedHeight: 
DrGeoSystem wheelWidth)



-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210929/23bece2a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran de 2021-09-29 17-13-28.png
Type: image/png
Size: 32687 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210929/23bece2a/attachment-0001.png>


More information about the Cuis-dev mailing list