pharo-graphics / Bloc

Low-level UI infrastructure & framework for Pharo
MIT License
80 stars 39 forks source link

[Layouts] BlTextElement text vanishes on parent bloc resize #17

Closed darth-cheney closed 5 years ago

darth-cheney commented 7 years ago

Again, not sure if I'm screwing something up or if it's a bug, but when I have a BlTextElement that is a child of either a Grid or Frame layout, the text will vanish upon resizing.

To see an example of what I mean, go ahead and clone my tests repository and run CopWindow exampleBasic. Double-click the titlebar to get the halo and then try resizing.

Here are screenshots for reference: screen shot 2017-04-01 at 3 00 39 pm screen shot 2017-04-01 at 3 00 52 pm screen shot 2017-04-01 at 3 01 03 pm

Related question: Is there a way to open up an expansive BlSpace in an OSWindow or something, so that I can experiment as if Bloc is the true graphics system?

Thanks as always.

syrel commented 7 years ago

Hi Eric,

Text part is under active development :) Yes, it is a known problem and I will fix it at some point, but for now you have to live with it, sorry.

Is there a way to open up an expansive BlSpace in an OSWindow or something, so that I can experiment as if Bloc is the true graphics system?

Unfortunately, because of changes in how Pharo 6 main window works there is no way to open bloc in OSWindow. Simply because OSWindow does not work yet as expected :) Funny is that Bloc was designed and always worked in OSWindow and around month ago we had to port it back to morphic 😢 We have to wait official Pharo 6 release and then see what is the status and if it will not work we will have to find a workaround...

girba commented 5 years ago

This should work now.