ctreffe / alfred

Alfred - A library for rapid experiment development
MIT License
10 stars 1 forks source link

Argument "height" not working for image elements #213

Open ctreffe opened 2 years ago

ctreffe commented 2 years ago

The following code does not result in a resized image being displayed:

stickman_single = al.Image(
            self.exp.subpath(f'files/stickman_single.jpg'),
            position="center",
            height="30px"
        )

Instead, the image is displayed with its full height.

ctreffe commented 6 months ago

Also, at least within a row element, the width argument also does not seem to work as intended. See https://github.com/ctreffe/exp_ba_tralou for an example of this problem.

Maybe we should also allow users to set a percentage value in order to prevent side effects with our responsive ui