Skip to content

A border in a stylesheet is not applied to a button presenter #1802

@koendehondt

Description

@koendehondt

Pharo 13.

Consider this code:

application := SpApplication new
	addStyleSheetFromString: '.application [
		.coloredWidget [
			Draw { #backgroundColor: #green},
			Container { #borderColor: #red, #borderWidth: 3 } ]
	]';
	yourself.
presenter := SpPresenter newApplication: application.
button := presenter newButton
	label: 'Test';
	addStyle: 'coloredWidget';
	yourself.
text := presenter newText.
layout := SpBoxLayout newTopToBottom
	spacing: 10;
	vAlignCenter;
	hAlignCenter;
	add: text;
	add: button;
	yourself.
presenter layout: layout.
presenter open

The text presenter is added only to ensure that the blue focus border is not applied to the button presenter. The text presenter is not important for the issue described in this ticket.

The code opens this window:

Image

The button should have a red border of 3 pixels wide, but it does not. That is a bug.

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