Search the Community
Showing results for tags 'padding'.
-
I need to display a list of cards, and used a stackpanel for that. The cards should have some space between them, and i saw there's the padding property so i tried it. Problem 1: If i set the padding to the stackpanel, the cards get clipped because the padding is removed from the stackpanel available width for its children. Problem 2: The padding set on the second card gets removed from the card width, thus i need to increase its width by the same amount of the padding i need. Doesn't seem right. Maybe we need also a margin property if this behavior is by design? Playground to reproduce the bugs: https://www.babylonjs-playground.com/#F1Z1SC#1
- 3 replies
-
- gui
- stackpanel
-
(and 2 more)
Tagged with:
-
Hi guys. https://www.babylonjs-playground.com/#91I2RE#47 In this PG, a simple ADT with image control. Timer adds more paddingBottom every 2 seconds. Watch control/image size. It shrinks to nearly nothing, then starts up-sizing. This symptom is same for all 4 paddings. My PG is coded to easily test any of the 4 types. It also happens when both alignments are set to CENTER, or when no alignments are set. For fun, after RUN, put pointer on TOP edge of yellow image, and leave it there. After button starts growing again, notice pointer is on BOTTOM edge of image. Strange and interesting. Anyway, I'm not sure if this is a bug, but I thought I better report it, and ask if this is expected behavior. Party on!
-
Hi guys, I'm having an issue with a tileSprite I'm using to cover my game screen. It looks like the repeating texture has spacing/margin added on all sides which creates this grid like effect in the screenshot below. I have no idea how this has happened because yesterday when I was working on the game (and all times previously) the tileSprite formed a solid texture the size of the game world. I've tried this with 2 separate textures, in different states/browsers and I'm starting to think I'm going crazy. Any help advice would be greatly appreciated. Thanks!
- 2 replies
-
- tilesprite
- padding
-
(and 1 more)
Tagged with:
-
Hi, I'm trying to utialize filters to create visual-effects in my game. But when I apply the filters to my stage, It offsets the entire picture, and streatches the border pixels. The effect plays as expected. It looks like this (This is with displacementFilter.scale 200): Any ideas why this is happending?
- 10 replies
-
- displacement
- filter
-
(and 1 more)
Tagged with:
-
I've spotted an issue with text being cut off I can't resolve with padding.x Here's some screenshots of the text. First with 0 padding And with 40 padding Is there a way to add padding to the start of the text ? Or split the horizontal padding to both sides of the sprite? FWIW - I'm using Phaser 2.4.3
-
Greetings. Is there a way to define a sprite collision area, such as a rectangle or a polygon? For example a sprite's image is 64x64 pixels, but that contains some padding and/or the actual image is of a complicated shape. Thanks for any help!