Giter Site home page Giter Site logo

stickyheaders-codenameone's People

Contributors

chen-fishbein avatar

Stargazers

 avatar

Watchers

 avatar  avatar

stickyheaders-codenameone's Issues

StickyHeader appearing over TitleArea

If StickyHeader is not used with the form contentPane, it appears at the top of the screen.

To reproduce this:

Set form to BorderLayout and add a scrollable container which will contain the Labels and the StickyHeader.

Over flow error.

java.lang.StackOverflowError
at sun.font.CCharToGlyphMapper$Cache.get(CCharToGlyphMapper.java:272)
at sun.font.CCharToGlyphMapper.charsToGlyphs(CCharToGlyphMapper.java:147)
at sun.font.CCharToGlyphMapper.charsToGlyphsNS(CCharToGlyphMapper.java:62)
at sun.font.GlyphList.mapChars(GlyphList.java:269)
at sun.font.GlyphList.setFromString(GlyphList.java:244)
at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:71)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2928)
at com.codename1.impl.javase.JavaSEPort.drawString(JavaSEPort.java:4098)
at com.codename1.impl.CodenameOneImplementation.drawString(CodenameOneImplementation.java:6889)
at com.codename1.impl.CodenameOneImplementation.drawLabelText(CodenameOneImplementation.java:6814)
at com.codename1.impl.CodenameOneImplementation.drawLabelString(CodenameOneImplementation.java:6750)
at com.codename1.impl.CodenameOneImplementation.drawLabelComponent(CodenameOneImplementation.java:6648)
at com.codename1.ui.Label.paint(Label.java:471)
at com.codename1.ui.Component.internalPaintImpl(Component.java:1314)
at com.codename1.ui.Component.paintInternalImpl(Component.java:1288)
at com.codename1.ui.Component.paintInternal(Component.java:1263)
at com.codename1.ui.Container.paint(Container.java:1313)
at com.otimotechnologies.demos.StickyHeader$1.paint(StickyHeader.java:119)
at com.codename1.ui.Form.paintGlassImpl(Form.java:626)
at com.codename1.ui.Component.paintGlassImpl(Component.java:1534)
at com.codename1.ui.Container.paintGlassImpl(Container.java:1341)
at com.codename1.ui.Component.paintGlassImpl(Component.java:1534)
at com.codename1.ui.Container.paintGlassImpl(Container.java:1341)
at com.codename1.ui.Container.paint(Container.java:1324)

StickyHeader Shifted to One Side If Parent has Padding

If padding is applied to the parent container, the StickyHeader is shifted to the left, leaving space equal to "left and right" padding on the right.

To reproduce this, the scrollable container's padding to 2mm on both left and right.

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.