Skip to content

Commit

Permalink
Update buttons when the title changes, v2.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 15, 2025
1 parent c547483 commit e557057
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.18.3] - 2025-01-15

### Fixed

- Update buttons when the title changes

## [2.18.2] - 2025-01-15

### Added
Expand Down Expand Up @@ -699,6 +705,7 @@ Please see the [Releases](https://github.com/Open-EO/openeo-vue-components/relea


[Unreleased]: https://github.com/Open-EO/openeo-vue-components/compare/v2.18.2...HEAD
[2.18.3]: https://github.com/Open-EO/openeo-vue-components/compare/v2.18.2...v2.18.3
[2.18.2]: https://github.com/Open-EO/openeo-vue-components/compare/v2.18.1...v2.18.2
[2.18.1]: https://github.com/Open-EO/openeo-vue-components/compare/v2.18.0...v2.18.1
[2.18.0]: https://github.com/Open-EO/openeo-vue-components/compare/v2.17.1...v2.18.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A set of [Vue](https://vuejs.org) components for [openEO](http://openeo.org).

This library's version is [**2.18.2**](CHANGELOG.md) and supports **openEO API versions 1.x.x**.
This library's version is [**2.18.3**](CHANGELOG.md) and supports **openEO API versions 1.x.x**.
Legacy versions supporting API version 0.x are available as [releases](https://github.com/Open-EO/openeo-vue-components/releases).

npm: [@openeo/vue-components](https://www.npmjs.com/package/@openeo/vue-components)
Expand Down
5 changes: 4 additions & 1 deletion components/internal/BButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default {
else {
this.removeTooltip();
}
},
title() {
this.updateTooltip();
}
},
methods: {
Expand All @@ -90,14 +93,14 @@ export default {
}
this.element = document.createElement('div');
this.element.className = 'openeo-vue-tooltip';
this.element.innerText = this.title;
this.container.appendChild(this.element);
this.updateTooltip();
},
updateTooltip() {
if (!this.element) {
return;
}
this.element.innerText = this.title;
const el = this.$refs.button;
const pos = el.getBoundingClientRect();
this.element.style.top = Math.max(0, (pos.top + el.offsetHeight)) + 1 + 'px';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openeo/vue-components",
"version": "2.18.2",
"version": "2.18.3",
"author": "openEO Consortium",
"contributors": [
{
Expand Down

0 comments on commit e557057

Please sign in to comment.