<div dir="ltr">In the Todo app I created in order to learn more about Morphic, I needed to execute some code when the extent of <font face="monospace">PluggableScrollPane</font> is changed. The code changes the size of the "scroller" morph associated with the PluggableScrollPane. Here's a snippet this shows how I use it:<div><br></div><div><font face="monospace">scrollPane onExtentChanged: [ :newExtent |<br>    todosPane morphWidth: (scrollPane hScrollBarWidth - 10).<br>   ].</font></div><div><br></div><div>To achieve this, I created a subclass of <font face="monospace">PluggableScrollPane</font> that adds the <font face="monospace">onExtentChanged: </font>method.</div><div><br></div><div>The attached ChangeSet adds this capability to <font face="monospace">PluggableScrollPane</font> so it's unnecessary to create a subclass. It does three things:</div><div><br></div><div>- adds the instance variable <font face="monospace">onExtentChanged</font></div><div>- adds the instance method <font face="monospace">extendChanged:</font> to set that instance variable to a block</div><div>- adds the following line to the end of the existing <font face="monospace">extentChanged:</font> method</div><div><br></div><div><font face="monospace"> onExtentChanged ifNotNil: [ onExtentChanged value: self morphExtent ].<br clear="all"></font><div><br></div><div>Does this seem worthy of adding to <font face="monospace">PluggableScrollPane</font>?</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div></div></div>