Comments (10)
Putting a space in there should probably fix this issue...
from flixel-ui.
This is an input for user and caused bad user experience.
I suggest adding a minHeight property to FlxText and honor that in regenGraphics()
from flixel-ui.
Put a text, refresh the height, and set text back to "" :-P
Just kidding this is a bug and needs to be fixed...
from flixel-ui.
Yeah, I should fix this.
On Tue, Mar 25, 2014 at 11:09 PM, Samuel Batista
[email protected]:
Put a text, refresh the height, and set text back to "" :-P
Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-38648326
.
www.fortressofdoors.com -- Games, Art, Design
from flixel-ui.
This is a temp fix for me
FlxText:
private function regenGraphics():Void
{
//...
// Account for 2px gutter on top and bottom (that's why there is "+ 4")
var newHeight:Float = _textField.textHeight + _heightInc + 4;
if (newHeight < size + 6) newHeight = size + 6; //fix empty text height
//...
}
from flixel-ui.
This is actuallly not a bug with flixel-ui, but flixel / FlxText
itself. If you look at the text height of an empty text, it's incorrect / different from the usual text height. This only seems to happen on flash.
from flixel-ui.
So should we close this and redirect to the bug in FlxText?
from flixel-ui.
Didn't we fix this here? HaxeFlixel/flixel@cda9a70
from flixel-ui.
Yeah pretty sure we did.
from flixel-ui.
I'm going to close this for now.
from flixel-ui.
Related Issues (20)
- FlxInputText on JS crashes with when trying to make text go multiline HOT 4
- FlxUITabMenu not working HOT 2
- Unable to backspace last character on JS target in FlxInputText and FlxUIInputText HOT 1
- XML Issues HOT 7
- Suggestion: XML Schema for UI format
- FlxUICursor: Potential typo warning from Haxe
- Potential typo detected (expected similar values are flixel.addons.ui.SortMethod.ID)
- FlxInputText is not getting focus HOT 2
- Space doesn't work on FlxInputText in html5 HOT 4
- FlxInputText caret does not got below first line
- idk what is this but is from psych engine 0.7.1h source code compile HOT 1
- Chromium browsers on Android only shows numeric input
- FlxUIButton creates incrementally larger graphic keys
- FlxSlider / FlxUISlider hitbox issue HOT 1
- QUESTION: Haxe Version HOT 2
- [BUG] FlxUIDropDownMenu not working correctly HOT 7
- Missing documentation on FlxUICheckBox's and FlxUITabMenu's "new" functions.
- How to make an slider? HOT 5
- Better errors when using flixel-addons classes
- Rendering artifacts are shown when an flxsprite's angle is not 0 or 180 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flixel-ui.