+
Skip to content

border dashOffset and dashArray not rendered correctly in space when animated #818

@rvillemeur

Description

@rvillemeur

The snippet below with open a triangle, but bullet running arround:

| element animation |
element := BlElement new
	           extent: 400 @ 400;
	           geometry: (BlTriangleGeometry new matchExtent: 200 @ 400; beLeft);
	           background: Color lightOrange;
	           outskirts: BlOutskirts centered.

animation := BlAnimation new
	             beInfinite;
					duration: 1 seconds.

element addAnimation: animation.

animation addEventHandler: (BlEventHandler
		 on: BlAnimationStepEvent
		 do: [ :anEvent |
				 element border: (BlBorder builder
						  paint: (Color r: 0.7 g: 0.2 b: 348);
						  width: 16;
						  dashOffset: anEvent progress * 32;
						  dashArray: #( 0 17 0 17 );
						  capRound;
						  build) ]).

element openInNewSpace.
^ element

When I open it, I have this rendering.
Image

If I resize the space windows, the rendering is done correctly,

Image

Tested on Pharo 13.0, Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载