Thanks Alex,
I am going to work on.
Thanks,
3.01.2019 11:27 tarihinde Alex Harui yazdı:
I pushed changes that should fix it. The changes are in royale-asjs
repo.
-Alex
*From: *Serkan Taş <serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org" <users@royale.apache.org>
*Date: *Thursday, January 3, 2019 at 12:17 AM
*To: *"users@royale.apache.org" <users@royale.apache.org>
*Subject: *Re: Work on Emulation
Hi Alex,
Should I report a bug about this issue ?
Thanks,
Serkan
31.12.2018 13:44 tarihinde Serkan Taş yazdı:
Hi Greg,
Hope you are well. Alex sent mail about the issue being fixed by
you. How can I trace when it is going to be available ?
Thanks,
Serkan
31.12.2018 10:16 tarihinde Alex Harui yazdı:
That’s a bug. I thought Greg made changes to fix that.
-Alex
*From: *Serkan Taş <serkan....@likyateknoloji.com>
<mailto:serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org"
<mailto:users@royale.apache.org> <users@royale.apache.org>
<mailto:users@royale.apache.org>
*Date: *Sunday, December 30, 2018 at 1:10 PM
*To: *"users@royale.apache.org"
<mailto:users@royale.apache.org> <users@royale.apache.org>
<mailto:users@royale.apache.org>
*Subject: *Re: Work on Emulation
Giving id makes it work. How should we call it bug or miss usage ?
29.12.2018 19:14 tarihinde Alex Harui yazdı:
Try giving the formItem and id.
HTH,
-Alex
*From: *Serkan Taş <serkan....@likyateknoloji.com>
<mailto:serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org"
<mailto:users@royale.apache.org> <users@royale.apache.org>
<mailto:users@royale.apache.org>
*Date: *Saturday, December 29, 2018 at 1:13 AM
*To: *"users@royale.apache.org"
<mailto:users@royale.apache.org> <users@royale.apache.org>
<mailto:users@royale.apache.org>
*Subject: *Re: Work on Emulation
Addition :
During the debug, you can see in the image, the value is
retrieved from resource bundle but I think because that
obj is null, value is not set.
js file : GenericBinding.js
cid:part1.26037E2D.2E17F47F@likyateknoloji.com
Thanks,
Serkan
29.12.2018 11:18 tarihinde Serkan Taş yazdı:
I see,
Mobile layout is not letting you see the whole mail.
I debugged the code, and can say that the resource is
loaded from bundle but not displayed and even not in
the html output/content :
Somewhere in code, it is lost and the output is :
<span class="Label" style="white-space: nowrap;
display: inline-block; position: absolute; width:
169px; left: 0px; top: 0px; height: 0px;"></span>
As you can see, the label is no in span tag.
I am going to try to figure out where the text is lost.
Thanks,
Serkan
29.12.2018 11:00 tarihinde Alex Harui yazdı:
Serkan,
I am not a computer so I will not always see how
the source code maps to the output. Plus, you
didn’t post [ResourceBundle] which was a problem
earlier.
I suggest that you look at the Elements in the
browser and see if the label has been created but
has a width of zero or some other bad value.
Bindings are applied a bit later than literals so
the label might get sized before it gets set and
needs to get sized again when the label is set. I
added similar code to Menu/MenuBar last night.
HTH,
-Alex
*From: *Serkan Taş <serkan....@likyateknoloji.com>
<mailto:serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org"
<mailto:users@royale.apache.org>
<users@royale.apache.org>
<mailto:users@royale.apache.org>
*Date: *Friday, December 28, 2018 at 11:32 PM
*To: *"users@royale.apache.org"
<mailto:users@royale.apache.org>
<users@royale.apache.org>
<mailto:users@royale.apache.org>
*Subject: *Re: Work on Emulation
Alex,
The button is getting resource bundle correctly
bur form not. They are in same code. Can you see
the capture image ?
Android için Outlook
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36&data=02%7C01%7Caharui%40adobe.com%7Cf5a19205d0594fc3d88908d67153f3bb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636821002750057911&sdata=1Hkki%2BmMq1IzvZyg%2FucSF%2FMt6WtVHx13jSkWcx1ywtU%3D&reserved=0>
uygulamasını edinin
On Sat, Dec 29, 2018 at 10:24 AM +0300, "Alex
Harui" <aha...@adobe.com
<mailto:aha...@adobe.com>> wrote:
Verify that you are using [ResourceBundle]
correctly, then verify that the resources are
being added to the output. You can compare to
the simpler example we got working recently to
see where the resource bundles end up in the
output.
HTH,
-Alex
*From: *Serkan Taş
<serkan....@likyateknoloji.com>
<mailto:serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org"
<mailto:users@royale.apache.org>
<users@royale.apache.org>
<mailto:users@royale.apache.org>
*Date: *Friday, December 28, 2018 at 11:48 AM
*To: *"users@royale.apache.org"
<mailto:users@royale.apache.org>
<users@royale.apache.org>
<mailto:users@royale.apache.org>
*Subject: *Re: Work on Emulation
Hi Alex,
I moved the content of toutdeflexmodule to my
project and it is working as expected except
the ones coming from resource.
Here is the output :
cid:part1.358B2100.5175D656@likyateknoloji.com
Here is the source (Part of, not complete) :
<mx:Panel title="Form Container Example"
paddingBottom="10"
paddingTop="10" paddingLeft="10" paddingRight="10"
height="100%" width="100%">
<mx:Text width="100%"
text="Moving from one form
field to another triggers the validator."/>
<mx:Form width="100%" height="100%">
<mx:FormHeading label="Enter
values into the form."/>
<mx:FormItem
label="{resourceManager.getString('messages',
'login')}">
<mx:TextInput id="fname"
width="200"/>
</mx:FormItem>
<mx:FormItem label="Date of birth
(mm/dd/yyyy)">
<mx:TextInput id="dob"
width="200"/>
</mx:FormItem>
<mx:FormItem label="E-mail address">
<mx:TextInput id="email"
width="200"/>
</mx:FormItem>
<mx:FormItem label="Age">
<mx:TextInput id="age"
width="200"/>
</mx:FormItem>
<mx:FormItem label="SSN">
<mx:TextInput id="ssn"
width="200"/>
</mx:FormItem>
<mx:FormItem label="Zip">
<mx:TextInput id="zip"
width="200"/>
</mx:FormItem>
<mx:FormItem label="Phone">
<mx:TextInput id="phone"
width="200"/>
</mx:FormItem>
<mx:FormItem paddingLeft="63">
<s:Button id="button"
width="64"
label="{resourceManager.getString('messages',
'login')}" click="button_clickHandler(event)"/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
As you can see, the resource button is working
but the ones in formitem does not. The label
of the first text field is missing but the
same resource for button is working.
Thanks,
Serkan
28.12.2018 03:35 tarihinde Alex Harui yazdı:
The basic process is to debug into the
components and propose fixes for them. It
is probably wise to check
examples/mxroyale/tourdeflexexamples to
see if the component is functioning at
all. I thought that Form/FormItem was
displaying something. It can help you
figure out where to debug.
-Alex
*From: *Serkan Taş
<serkan....@likyateknoloji.com>
<mailto:serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org"
<mailto:users@royale.apache.org>
<users@royale.apache.org>
<mailto:users@royale.apache.org>
*Date: *Thursday, December 27, 2018 at
12:32 PM
*To: *"users@royale.apache.org"
<mailto:users@royale.apache.org>
<users@royale.apache.org>
<mailto:users@royale.apache.org>
*Subject: *Re: Work on Emulation
Hi,
For the beginning of my project, I am now
working on problems with the emulated
components :)
How should I continue for the emulated
components ?
Components : mx.containers.From and
mx.containers.FromItem
Problem :
·Layout is not rendered as expected.
·FormItem labels are not displayed
·FormItem child text is not correctly
rendered
Test source :
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7Cf5a19205d0594fc3d88908d67153f3bb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636821002750057911&sdata=azQDNissH%2BOF5ptdBJcT97JSTT0Ijhe4Waa0%2B%2FqdeB0%3D&reserved=0>
xmlns:s="library://ns.apache.org/royale/spark"
xmlns:mx="library://ns.apache.org/royale/mx"
xmlns:comps="com.likya.pinara.comps.*"
width="100%">
<fx:Metadata>
[ResourceBundle("messages")]
</fx:Metadata>
<fx:Script>
<![CDATA[
[Bindable]
private var trIcon:Class;
[Bindable]
private var enIcon:Class;
private function
changeLocale(locale:String):void {
}
protected function
button_clickHandler(event:MouseEvent):void {
}
]]>
</fx:Script>
<fx:Declarations>
</fx:Declarations>
<s:Panel
horizontalCenter="0"
verticalCenter="0"
id="loginPanel"
width="288"
height="179"
chromeColor="#E2E5E7"
title="{resourceManager.getString('messages',
'loginTitle')}"
>
<mx:Button y="-27" right="30"
width="20" click="changeLocale('tr_TR')"
icon="{trIcon}" toolTip="Türkçe"/>
<mx:Button y="-27" right="5"
width="20" click="changeLocale('en_US')"
icon="{enIcon}" toolTip="English"/>
<mx:Form width="288"><!--
defaultButton="{button}" -->
<mx:FormItem paddingTop="20"
label="{resourceManager.getString('messages',
'userName')}">
<s:TextInput id="userName" />
</mx:FormItem>
<mx:FormItem x="29" y="74"
label="{resourceManager.getString('messages',
'password')}">
<s:TextInput id="password"
displayAsPassword="true"/>
</mx:FormItem>
<mx:FormItem paddingLeft="63">
<s:Button id="button"
width="64"
label="{resourceManager.getString('messages',
'login')}"
click="button_clickHandler(event)"/>
</mx:FormItem>
</mx:Form>
</s:Panel>
</s:Application>
View :
cid:part1.44710608.3B30FC8E@likyateknoloji.com
Original in flex :
cid:part2.3AFF6E98.96331577@likyateknoloji.com
Not : Images are not included in test
source, should be disregarded,
Thanks,
Serkan