Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PopupViewer bugfix roundup #516

Merged
merged 3 commits into from
Jun 23, 2023
Merged

PopupViewer bugfix roundup #516

merged 3 commits into from
Jun 23, 2023

Conversation

mstefarov
Copy link
Collaborator

Three improvements for WPF PopupViewer's text element support:

Parse font sizes expressed in points (pt)

Ran into this in a few Living Atlas layers, e.g. National Weather Service Wind Speed Forecast:

Before fix After fix
2023-06-23_083445 Toolkit SampleApp WPF 2023-06-23_083339 Toolkit SampleApp WPF

Don't let image load errors take down the app

When a RuntimeImage representing an <img> fails to load (e.g. broken link or unsupported format), an unhandled exception is currently thrown. I think it's better to suppress it -- users already see a LoadError printed to console. A broken image link in a popup should not be catastrophic.

Fix handling of "align" HTML attribute

An accidentally-inverted condition caused all valid align values to be ignored. Also, <p> was missing from the list of tags that can have align attribute.

- Fix accidentally-inverted condition that caused all align values to be ignored.
- Add "p" to list of tags that can have align attribute.
@mstefarov mstefarov requested a review from dotMorten June 23, 2023 15:42
@mstefarov mstefarov self-assigned this Jun 23, 2023
@mstefarov mstefarov merged commit d03aa50 into main Jun 23, 2023
@mstefarov mstefarov deleted the matvei/popup-viewer-fixes branch June 23, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants