Permalink
Browse files

prettying upload ui.

  • Loading branch information...
jubishop committed Oct 2, 2009
1 parent 77c3fa5 commit f659ad692266542bcc2b046b279f80293a145065
Showing with 20 additions and 17 deletions.
  1. +6 −10 fbair/composer/Composer.mxml
  2. +11 −3 fbair/composer/DroppedPhotosRenderer.mxml
  3. +3 −4 fbair/styles/composer.css
@@ -18,7 +18,9 @@
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:util="fbair.util.display.*"
xmlns:composer="fbair.composer.*"
- verticalGap="5">
+ verticalGap="5"
+ nativeDragEnter="dragEnter(event)"
+ nativeDragDrop="dragDrop(event)" >
<mx:Metadata>
[Event(name="statusUpdated", type="fb.FBEvent")]
</mx:Metadata>
@@ -38,9 +40,7 @@
48 : 40}"
focusOutHeight="{
StylePrefs.sizeStyle == StylePrefs.SIZE_LARGE ?
- 29 : 25}"
- nativeDragEnter="dragEnter(event)"
- nativeDragDrop="dragDrop(event)" />
+ 29 : 25}" />
<util:FBButton id="shareButton"
autoStyle="true"
@@ -67,8 +67,6 @@
dataProvider="{droppedPhotos}"
visible="false"
styleName="droppedPhotoList"
- nativeDragEnter="dragEnter(event)"
- nativeDragDrop="dragDrop(event)"
creationComplete="photoCreationComplete(event)" />
<mx:Script><![CDATA[
@@ -78,7 +76,6 @@
import fb.util.Output;
import fb.util.StringUtil;
- import fbair.composer.DroppedPhotosRenderer;
import fbair.gui.StylePrefs;
import fbair.nile.NileContainer;
import fbair.notification.Toast;
@@ -298,9 +295,8 @@
// Make sure files are being dragged over
// We only support photo uploading on users
if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT) &&
- !NileContainer.FilterIsPage) {
- NativeDragManager.acceptDragDrop(composerInput);
- }
+ !NileContainer.FilterIsPage)
+ NativeDragManager.acceptDragDrop(this);
}
// Called when the user drops something onto the box
@@ -17,14 +17,22 @@
width="{MAX_DIMENSION}"
height="{MAX_DIMENSION}" >
+ <mx:Button id="photoFrame"
+ styleName="photoFrame"
+ buttonMode="false"
+ x="{photo.x - 2}"
+ y="{photo.y - 2}"
+ width="{photo.width + 4}"
+ height="{photo.height + 4}" />
+
<mx:Image id="photo"
source="{data.source}"
complete="imageLoadComplete(event)" />
-
+
<mx:Button id="closeButton"
styleName="storyDeleteButton"
- left="2"
- top="2"
+ x="{photo.x + 2}"
+ y="{photo.y + 2}"
click="dispatchEvent(new FBEvent(FBEvent.DELETED))" />
<mx:Script><![CDATA[
@@ -20,12 +20,11 @@ Composer {
}
.albumFieldLabel {
color: #333;
- font-size: 11;
+ font-size: 11 ;
+ paddingTop: 1;
}
+
.albumFieldText {
color: #000;
font-size: 11;
- borderSkin: Embed(source='../assets/composer_textarea.png',scaleGridTop='2',scaleGridLeft='2',scaleGridBottom='4',scaleGridRight='4');
- focusAlpha: 0;
- focusSkin: ClassReference('mx.skins.ProgrammaticSkin');
}

0 comments on commit f659ad6

Please sign in to comment.