Commit 021c194b authored by Aneta Steimarova's avatar Aneta Steimarova

#909 Made horizontal bar permanently visible

parent 1de38f36
......@@ -22,7 +22,6 @@ import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import cz.nic.tablexia.loader.application.ApplicationAtlasManager;
......@@ -30,7 +29,7 @@ import cz.nic.tablexia.loader.application.ApplicationAtlasManager;
/**
* Created by drahomir on 4/4/16.
*/
public class ScrollPaneWithBorders extends ScrollPane{
public class ScrollPaneWithBorders extends SpecialScrollPane{
private static final float SCROLL_SIZE = 10f;
private static final Color SCROLL_COLOR = new Color(0.f,0,0,0.1f);
private static final Color KNOB_COLOR = new Color(0,0,0,0.35f);
......@@ -61,10 +60,11 @@ public class ScrollPaneWithBorders extends ScrollPane{
this.rightBorder = leftBorder;
}
this.setStyle(initScrollPaneStyle());
this.setFadeScrollBars(false);
}
private ScrollPaneStyle initScrollPaneStyle() {
ScrollPane.ScrollPaneStyle style = new ScrollPane.ScrollPaneStyle();
SpecialScrollPane.ScrollPaneStyle style = new SpecialScrollPane.ScrollPaneStyle();
style.hScrollKnob = getScrollRegionDrawable(KNOB_COLOR);
style.hScroll = getScrollRegionDrawable(SCROLL_COLOR);
return style;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment