Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26032

Single pixel scrolls can cause visual artifacts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: Layout
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run this code:

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" width="700">

      <fx:Script>
      <![CDATA[
      public function virtualizationItemRendererFunction(item:*):IFactory

      { if (item is DisplayObject) return null; else return new ClassFactory(VR); }

      ]]
      >
      </fx:Script>

      <fx:Declarations>
      <fx:Component className="VR">
      <s:ItemRenderer width="24" height="100">
      <s:states>
      <s:State name="normal"/>
      <s:State name="hovered"/>
      <s:State name="selected"/>
      </s:states>
      <s:Rect top="0" left="0" right="0" bottom="0">
      <s:fill>
      <s:SolidColor color="0xA8C6EE" color.hovered="0xCEDBEF" color.selected="0xCCCCCC" />
      </s:fill>
      </s:Rect>
      <s:Label id="lbl" text="

      {data.myItemIndex}

      " top="1" left="1" />
      </s:ItemRenderer>
      </fx:Component>
      </fx:Declarations>

      <s:controlBarContent>
      <s:Button label="set hsp to 1" click="group1.horizontalScrollPosition = 1" />
      <s:Button label="set hsp to 0" click="group1.horizontalScrollPosition = 0" />
      </s:controlBarContent>

      <s:DataGroup id="group1" width="300" height="100" y="50" clipAndEnableScrolling="true" itemRendererFunction="virtualizationItemRendererFunction">
      <s:layout>
      <s:HorizontalLayout id="hLayout" useVirtualLayout="true" />
      </s:layout>
      <s:dataProvider>
      <s:ArrayList>
      <fx:Object myItemIndex="0" />
      <s:Button label="1" width="24" height="100" />
      <s:Button label="2" width="24" height="100" />
      <fx:Object myItemIndex="3" />
      <s:Button label="4" width="24" height="100" />
      <s:Button label="5" width="24" height="100" />
      <fx:Object myItemIndex="6" />
      <s:Button label="7" width="24" height="100" />
      <s:Button label="8" width="24" height="100" />
      <fx:Object myItemIndex="9" />
      <s:Button label="10" width="24" height="100" />
      <s:Button label="11" width="24" height="100" />
      </s:ArrayList>
      </s:dataProvider>
      </s:DataGroup>

      </s:Application>

      2. Click "set hsp to 1"
      3. Click "set hsp to 0"

      Actual Results:

      There is a line of pixels at the right boundary of the DataGroup

      Expected Results:

      No different than at startup of the application when hsp was 0

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: