# Code Preview having issues properties.bubble.height() returning 0 when that's not correct

**URL:** <https://forum.bubble.io/t/code-preview-having-issues-properties-bubble-height-returning-0-when-thats-not-correct/209032>\
**Category:** Plugin builders\
**Created:** [May 30, 2022, 10:51pm UTC](https://forum.bubble.io/t/code-preview-having-issues-properties-bubble-height-returning-0-when-thats-not-correct/209032 "2022-05-30T22:51:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![juicebox](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@juicebox](https://forum.bubble.io/u/juicebox)\
**Post date:** [May 31, 2022, 12:05am UTC](https://forum.bubble.io/t/code-preview-having-issues-properties-bubble-height-returning-0-when-thats-not-correct/209032/4 "2022-05-31T00:05:01Z")

</div>

@keith perhaps related?

> [@Issue with bubble.height](http://forum.bubble.io/t/issue-with-bubble-height/144444):
>
> properties.bubble.height has started failing me. Has anybody else got the same issue? I have filed a bug report. What confuses me is that the plugin builder documentation currently states that height: function() - returns a Number… i.e. it is a function. Yet in all of my plugins I refer to an element’s height as simply a key value using properties.bubble.height (as opposed to properties.bubble.height()) Anybody coming across the same issue?

> [@Pluggin Preview properties.bubble.height() and properties.bubble.width()](http://forum.bubble.io/t/pluggin-preview-properties-bubble-height-and-properties-bubble-width/208719):
>
> A couple of days ago I’ve finished a new element on a pluggin. It was working perfectly. Either on the App or on the Editor in preview mode. Today, it breaks on preview mode… On the application it is just fine. Debugging the pluggin in preview mode is harder, but from what I could find, it seems that bubble properties are now returning a “0” instead of the proper values. properties.bubble.height() and properties.bubble.width() should return the height and width, respectively, but they dont. P…

---

_[View the full topic](https://forum.bubble.io/t/code-preview-having-issues-properties-bubble-height-returning-0-when-thats-not-correct/209032)._
