Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some methods don't exist, should we replace them? #7

Open
ruanwz opened this issue Mar 6, 2015 · 1 comment
Open

some methods don't exist, should we replace them? #7

ruanwz opened this issue Mar 6, 2015 · 1 comment

Comments

@ruanwz
Copy link
Contributor

ruanwz commented Mar 6, 2015

diff --git a/lib/sweet-kit/ios/style.rb b/lib/sweet-kit/ios/style.rb
index 14fb85c..6fd7b46 100644
--- a/lib/sweet-kit/ios/style.rb
+++ b/lib/sweet-kit/ios/style.rb
@@ -5,21 +5,21 @@ module SweetKit
       font :system.uifont(17)
       numberOfLines 1
       minimumFontSize 10
-      autoshrink true
-      baseline :align_baselines
+      #autoshrink true
+      baselineAdjustment :align_baselines
       lineBreakMode :tail_truncation
-      alignment :left
-      color :black
-      opaque false
+      textAlignment :left.nstextalignment
+      text_color :black
+      #opaque false
       backgroundColor :clear
     end

     def sweetkit_input
       font :system.uifont(14)
-      color :black
-      border :rounded
-      alignment :left
-      opaque false
+      text_color :black
+      borderStyle :rounded
+      textAlignment :left.nstextalignment
+      #opaque false
       backgroundColor :clear
     end


@colinta
Copy link
Member

colinta commented Mar 6, 2015

Strange I never noticed this! These are styles meant to be used with OS X controls.

On Mar 6, 2015, at 12:56 AM, David Ruan [email protected] wrote:

diff --git a/lib/sweet-kit/ios/style.rb b/lib/sweet-kit/ios/style.rb
index 14fb85c..6fd7b46 100644
--- a/lib/sweet-kit/ios/style.rb
+++ b/lib/sweet-kit/ios/style.rb
@@ -5,21 +5,21 @@ module SweetKit
font :system.uifont(17)
numberOfLines 1
minimumFontSize 10

  •  autoshrink true
    
  •  baseline :align_baselines
    
  •  #autoshrink true
    
  •  baselineAdjustment :align_baselines
    

    lineBreakMode :tail_truncation

  •  alignment :left
    
  •  color :black
    
  •  opaque false
    
  •  textAlignment :left.nstextalignment
    
  •  text_color :black
    
  •  #opaque false
    

    backgroundColor :clear
    end

    def sweetkit_input
    font :system.uifont(14)

  •  color :black
    
  •  border :rounded
    
  •  alignment :left
    
  •  opaque false
    
  •  text_color :black
    
  •  borderStyle :rounded
    
  •  textAlignment :left.nstextalignment
    
  •  #opaque false
    

    backgroundColor :clear
    end


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants