Giter Site home page Giter Site logo

Comments (10)

gamedevsam avatar gamedevsam commented on August 24, 2024

Putting a space in there should probably fix this issue...

from flixel-ui.

kevinresol avatar kevinresol commented on August 24, 2024

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.

gamedevsam avatar gamedevsam commented on August 24, 2024

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.

larsiusprime avatar larsiusprime commented on August 24, 2024

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.

kevinresol avatar kevinresol commented on August 24, 2024

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.

Gama11 avatar Gama11 commented on August 24, 2024

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.

larsiusprime avatar larsiusprime commented on August 24, 2024

So should we close this and redirect to the bug in FlxText?

from flixel-ui.

Gama11 avatar Gama11 commented on August 24, 2024

Didn't we fix this here? HaxeFlixel/flixel@cda9a70

from flixel-ui.

larsiusprime avatar larsiusprime commented on August 24, 2024

Yeah pretty sure we did.

from flixel-ui.

larsiusprime avatar larsiusprime commented on August 24, 2024

I'm going to close this for now.

from flixel-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.