MCPcopy Create free account
hub / github.com/devforth/painterro / reLimit

Method reLimit

js/text.js:143–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 }
142
143 reLimit() {
144 this.inputWrapper.style.right = 'auto';
145 if (this.inputLeft() + this.input.clientWidth >
146 this.main.elLeft() + this.el.clientWidth) {
147 this.inputWrapper.style.right = '0';
148 } else {
149 this.inputWrapper.style.right = 'auto';
150 }
151
152 this.inputWrapper.style.bottom = 'auto';
153 if (this.inputTop() + this.input.clientHeight >
154 this.main.elTop() + this.el.clientHeight) {
155 this.inputWrapper.style.bottom = '0';
156 } else {
157 this.inputWrapper.style.bottom = 'auto';
158 }
159 }
160
161 handleMouseDown(event) {
162 const mainClass = event.target.classList[0];

Callers 5

setFontMethod · 0.95
setFontIsBoldMethod · 0.95
setFontIsItalicMethod · 0.95
setFontSizeMethod · 0.95
handleMouseDownMethod · 0.95

Calls 4

inputLeftMethod · 0.95
inputTopMethod · 0.95
elLeftMethod · 0.80
elTopMethod · 0.80

Tested by

no test coverage detected