Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: fix scroll bar config (#5250)
wpxp123456c03ecd599cde
diff --git a/packages/engine-render/src/shape/scroll-bar.ts b/packages/engine-render/src/shape/scroll-bar.tsindex 9aca24bb64..d6a21324e6 100644--- a/packages/engine-render/src/shape/scroll-bar.ts+++ b/packages/engine-render/src/shape/scroll-bar.ts@@ -37,6 +37,10 @@ export interface IScrollBarProps {thumbHoverBackgroundColor?: string;/** Background color of the thumb when active. */thumbActiveBackgroundColor?: string;+ /** Background color of the track. */+ trackBackgroundColor?: string;+ /** Background color of the track border. */+ trackBorderColor?: string;/** The thickness of a scrolling track (not scrolling thumb). */barSize?: number;/** The thickness of track border. */@@ -155,6 +159,10 @@ export class ScrollBar extends Disposable {}});+ if (Tools.isDefine(props.thumbBackgroundColor)) {+ this._thumbDefaultBackgroundColor = props.thumbBackgroundColor;+ }+if (Tools.isDefine(props.barSize)) {this._trackThickness = props.barSize;}@@ -676,7 +684,7 @@ export class ScrollBar extends Disposable {thumb.setProps({fill: color,});- this._trackThickness = HOVER_TRACK_SIZE;+ // this._trackThickness = HOVER_TRACK_SIZE;this._resizeHorizontal();this.makeViewDirty(true);};