mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-30 18:40:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d4d766de9
commit
bb29ffb368
@ -156,13 +156,17 @@
|
|||||||
height: calc(2 * var(--item-padding) + 1em);
|
height: calc(2 * var(--item-padding) + 1em);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
resize: none;
|
resize: none;
|
||||||
/* show/hide node's view/code... */
|
|
||||||
/*&:focus+.view,*/
|
|
||||||
&:not(:focus) {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
|
/* show/hide node's view/code... */
|
||||||
|
&:focus {
|
||||||
|
position: relative;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
/* hide .view content but show before/after -- keep bulets and touch zones... */
|
/* hide .view content but show before/after -- keep bulets and touch zones... */
|
||||||
&:focus+.view {
|
&:focus+.view {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
|
||||||
&:before,
|
&:before,
|
||||||
@ -175,6 +179,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* click through the .view text to the .code */
|
/* click through the .view text to the .code */
|
||||||
|
/* NOTE: .view visibility is handled in .code above... */
|
||||||
&>.view {
|
&>.view {
|
||||||
position: relative;
|
position: relative;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|||||||
@ -8,22 +8,6 @@
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// Helpers...
|
// Helpers...
|
||||||
|
|
||||||
// XXX do a caret api...
|
|
||||||
|
|
||||||
// XXX only for text areas...
|
|
||||||
var atLine = function(elem, index){
|
|
||||||
// XXX add support for range...
|
|
||||||
var text = elem.value
|
|
||||||
var lines = text.split(/\n/g).length
|
|
||||||
var line = elem.caretLine
|
|
||||||
|
|
||||||
// XXX STUB index handling...
|
|
||||||
if((index == -1 && line == lines)
|
|
||||||
|| (index == 0 && line == 1)){
|
|
||||||
return true }
|
|
||||||
return false }
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
function clickPoint(x,y){
|
function clickPoint(x,y){
|
||||||
document
|
document
|
||||||
|
|||||||
@ -48,8 +48,6 @@ var setup = function(){
|
|||||||
-
|
-
|
||||||
- ## Bugs:
|
- ## Bugs:
|
||||||
focused:: true
|
focused:: true
|
||||||
- BUG: if changing style expands the block vertically it will not update size...
|
|
||||||
- # when edited, the text here will get re-wrapped but will not get resized
|
|
||||||
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
||||||
- FF:
|
- FF:
|
||||||
- zooming on edited field
|
- zooming on edited field
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user