Coder Social home page Coder Social logo

Comments (6)

tinchodias avatar tinchodias commented on August 30, 2024

Ooops! In fact, have to add a test for all geometries with 0@0 size!

from alexandrie.

plantec avatar plantec commented on August 30, 2024

I've also cases where the debugger opens on a divide by zero exception.
I tried to reproduce it with an example but without success. No doubt that it is when the element has a zero size

from alexandrie.

tinchodias avatar tinchodias commented on August 30, 2024

Oh, when setting a non-zero position it looks much more awesome!

Screenshot 2023-04-11 at 20 28 24

e := BlElement new
	position: 70 asPoint;
	size: 0 asPoint;
	border: (BlBorder paint: Color black);
	geometry: (BlRoundedRectangleGeometry cornerRadius: 50);
	yourself.
e openInNewSpace.

from alexandrie.

plantec avatar plantec commented on August 30, 2024

ah ok, this is a feature :)

from alexandrie.

tinchodias avatar tinchodias commented on August 30, 2024

The fix corresponds to Bloc's repo. I pushed a commit there that seems to close this issue.

from alexandrie.

tinchodias avatar tinchodias commented on August 30, 2024

This is fixed.

I tried these two examples to check it:

BlElement new
	position: 50 asPoint;
	size: 0 asPoint;
	border: (BlBorder paint: Color black);
	geometry: (BlRoundedRectangleGeometry cornerRadius: 50);
	openInSpace.

BlElement new
	position: 50 asPoint;
	constraintsDo: [ :c |
		c horizontal fitContent.
		c vertical fitContent ];
	border: (BlBorder paint: Color black);
	geometry: (BlRoundedRectangleGeometry cornerRadius: 24);
	openInSpace.

from alexandrie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.