Skip to content

Commit 1a668fd

Browse files
Fix white background on some demos (#47)
* Make background transparent on HTML5 * Fix gamepad demo * remove last paragraph it has bad grammar, and the idea that no one would want autoWidth and fixed height doesn't account for multiline text --------- Co-authored-by: George Kurelic <[email protected]>
1 parent 39fb5f3 commit 1a668fd

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

_proofs/text/textfield-width-and-height.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,3 @@ text.wordWrap = false; // must be explicitly set to `false`
2929
// or
3030
text.fieldWidth = text.fieldHeight = -1;
3131
```
32-
33-
**Note**: "fixed height - auto width" has no sence, it behaves the same way
34-
as the default autosized text:
35-
36-
```haxe
37-
// no sense, same as default autosize behavior
38-
text.fieldWidth = -1;
39-
text.fieldHeight = 50;
40-
```

demos/input/gamepad/Project.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<window width="320" height="240" fps="60" hardware="true" vsync="false" />
88
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" />
99
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" />
10+
<window background="null" if="html5" />
1011
<set name="BUILD_DIR" value="export" />
1112
<source path="source" />
1213
<source path="../../shared/" />
@@ -20,4 +21,4 @@
2021
<!-- <haxedef name="FLX_NO_GAMEPAD" />-->
2122
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
2223
<haxedef name="FLX_NO_DEBUG" unless="debug" />
23-
</project>
24+
</project>

demos/text/textfield-width-and-height/Project.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<window width="320" height="240" fps="60" hardware="true" vsync="false" />
88
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" />
99
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" />
10+
<window background="null" if="html5" />
1011
<set name="BUILD_DIR" value="export" />
1112
<source path="source" />
1213
<source path="../../shared/" />

0 commit comments

Comments
 (0)