@brightspace-ui/core 3.135.5 → 3.135.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -270,7 +270,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
|
|
270
270
|
const availableHeight = this._ifrauContextInfo
|
271
271
|
? this._ifrauContextInfo.availableHeight - this._margin.top - this._margin.bottom
|
272
272
|
: window.innerHeight - this._margin.top - this._margin.bottom;
|
273
|
-
let preferredHeight =
|
273
|
+
let preferredHeight = 3; // content height is off by 2px and we need an extra 1px to account for rounding when zoomed
|
274
274
|
|
275
275
|
if (this.fullHeight) {
|
276
276
|
preferredHeight = 2 * this._width;
|
@@ -550,8 +550,10 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
|
|
550
550
|
_updateOverflow() {
|
551
551
|
if (!this.shadowRoot) return;
|
552
552
|
const content = this.shadowRoot.querySelector('.d2l-dialog-content');
|
553
|
+
// On Windows, browser zoom can cause scrollTop to be a fraction
|
554
|
+
const bottomOverflow = content.scrollHeight - (Math.ceil(content.scrollTop) + content.clientHeight);
|
553
555
|
this._overflowTop = (content.scrollTop > 0);
|
554
|
-
this._overflowBottom = (
|
556
|
+
this._overflowBottom = (bottomOverflow > 0);
|
555
557
|
}
|
556
558
|
|
557
559
|
async _updateSize() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.135.
|
3
|
+
"version": "3.135.6",
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
5
5
|
"type": "module",
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|