A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/bf7a65f87caf0d725033c35ee85c1e32ced82adc below:

`setStyle()` util usage · bootstrap-vue/bootstrap-vue@bf7a65f · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -173,11 +173,11 @@ export const BFormTextarea = /*#__PURE__*/ Vue.extend({

173 173

// Get the current style height (with `px` units)

174 174

const oldHeight = getStyle(el, 'height') || computedStyle.height

175 175

// Probe scrollHeight by temporarily changing the height to `auto`

176 -

setStyle(el, 'auto')

176 +

setStyle(el, 'height', 'auto')

177 177

const scrollHeight = el.scrollHeight

178 178

// Place the original old height back on the element, just in case `computedProp`

179 179

// returns the same value as before

180 -

setStyle(el, oldHeight)

180 +

setStyle(el, 'height', oldHeight)

181 181 182 182

// Calculate content height in 'rows' (scrollHeight includes padding but not border)

183 183

const contentRows = mathMax((scrollHeight - padding) / lineHeight, 2)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4