Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1164

Alloy: Not possible to hide View inside TextArea

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime
    • Environment:

      Ti 3.4.0, Alloy 1.5

      Ti SDK 3.4.0.GA
      Ti CLI 3.4.0
      Alloy 1.5.1
      Mac OS X 10.9.5
      iOS v8.0

    • Story Points:
      3

      Description

      Problem Description

      It is not possible to hide a view within TextArea. Properties/Methods `visible`, `hide`, `show` are basically ignored. Works fine in Classic Ti and it worked in Alloy too... (I can't say exactly in what version ,but it worked for sure...).

      Testcase

      index.js

      function hideRedView(e) {
      	$.redView.visible = !$.redView.visible;
      	console.log("RED VIEW SHOULD BE: " + ($.redView.visible ? "shown" : "hidden"));
      };
       
      $.index.open();
      

      index.xml

      <Alloy>
      	<Window>
      		<TextArea id="textArea">
      			<View id="redView"/>
      		</TextArea>
      		
      		<Button title="Click!" onClick="hideRedView"/>
      	</Window>
      </Alloy>
      

      index.tss

      "Window": {
      	backgroundColor: "white",
      	layout: "vertical"
      }
       
      "#textArea": {
      	width: "80%", height: 300,
      	borderWidth: "1px",
      	borderColor: "gray",
      	top: 30
      }
       
      "#redView": {
      	width: 100, height: 100,
      	backgroundColor: "red"
      }
      

      Extra information

      The Support Team tested this in Ti Classic, is working just fine. The testcase is in a comment.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sko Matej
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration