Bug? B4XRect setter for Width is taking an int parameter as input ?

TelKel81

Active Member
Licensed User
From current source code of jXUI on GitHub...
Java:
        /**
         * Gets or sets the rectangle width.
         */
        public float getWidth() {
            return right - left;
        }
        public void setWidth(int w) {
            right = left + w;
        }
        /**
         * Gets or sets the rectangle height.
         */
        public float getHeight() {
            return bottom - top;
        }
        public void setHeight(float h) {
            bottom = top + h;
        }
 
Top