autosize.js

来自「javascript 很酷的类库」· JavaScript 代码 · 共 35 行

JS
35
字号
isc.defineClass("HelpCanvas", "Canvas").addProperties({    autoDraw: false,    defaultWidth: 300,    padding: 10,    contents: "<b>Severity 1</b> - Critical problem<br>System is unavailable in production or " +              "is corrupting data, and the error severely impacts the user's operations." +              "<br><br><b>Severity 2</b> - Major problem<br>An important function of the system " +              "is not available in production, and the user's operations are restricted." +              "<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +              "system occurs, but it does not seriously affect the user's operations."});isc.Window.create({    title: "Auto-sizing window",    autoSize: true,    canDragReposition: true,    canDragResize: true,    items: [        isc.HelpCanvas.create()    ]});isc.Window.create({    width: 200,    height: 200,    left: 325,    title: "Normal window",    canDragReposition: true,    canDragResize: true,    items: [        isc.HelpCanvas.create()    ]});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?