Merge pull request #15011 from Snuffleupagus/misc-review-comments
Fix a couple of old review comments
This commit is contained in:
commit
a1bc5a8fe2
@ -2706,7 +2706,7 @@ class ChoiceWidgetAnnotation extends WidgetAnnotation {
|
||||
let lineWidth = -1;
|
||||
let value;
|
||||
for (const { displayValue } of this.data.options) {
|
||||
const width = this._getTextWidth(displayValue);
|
||||
const width = this._getTextWidth(displayValue, font);
|
||||
if (width > lineWidth) {
|
||||
lineWidth = width;
|
||||
value = displayValue;
|
||||
|
@ -70,7 +70,8 @@ class ColorConverters {
|
||||
}
|
||||
|
||||
static CMYK_HTML(components) {
|
||||
return this.RGB_HTML(this.CMYK_RGB(components));
|
||||
const rgb = this.CMYK_RGB(components).slice(1);
|
||||
return this.RGB_HTML(rgb);
|
||||
}
|
||||
|
||||
static RGB_CMYK([r, g, b]) {
|
||||
|
@ -117,7 +117,7 @@ const FontInspector = (function FontInspectorClosure() {
|
||||
download.href = url[1];
|
||||
} else if (fontObj.data) {
|
||||
download.href = URL.createObjectURL(
|
||||
new Blob([fontObj.data], { type: fontObj.mimeType })
|
||||
new Blob([fontObj.data], { type: fontObj.mimetype })
|
||||
);
|
||||
}
|
||||
download.textContent = "Download";
|
||||
|
Loading…
x
Reference in New Issue
Block a user